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

Function write_frozen

Programs/_freeze_module.py:46–51  ·  view source on GitHub ↗
(outpath: str, inpath: str, name: str, marshalled: bytes)

Source from the content-addressed store, hash-verified

44
45
46def write_frozen(outpath: str, inpath: str, name: str, marshalled: bytes) -> None:
47 with open(outpath, "w") as outfile:
48 outfile.write(header)
49 outfile.write("\n")
50 arrayname = get_varname(name, "_Py_M__")
51 write_code(outfile, marshalled, arrayname)
52
53
54def main():

Callers 1

mainFunction · 0.85

Calls 4

get_varnameFunction · 0.85
write_codeFunction · 0.85
openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…