MCPcopy Index your code
hub / github.com/python/cpython / marshalmap

Function marshalmap

Tools/unicode/gencodec.py:364–370  ·  view source on GitHub ↗
(name,map,marshalfile)

Source from the content-addressed store, hash-verified

362 f.write(code)
363
364def marshalmap(name,map,marshalfile):
365
366 d = {}
367 for e,(u,c) in map.items():
368 d[e] = (u,c)
369 with open(marshalfile,'wb') as f:
370 marshal.dump(d,f)
371
372def convertdir(dir, dirprefix='', nameprefix='', comments=1):
373

Callers 1

convertdirFunction · 0.85

Calls 3

openFunction · 0.50
itemsMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…