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

Function main

Programs/freeze_test_frozenmain.py:33–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def main():
34 if len(sys.argv) < 2:
35 print(f"usage: {sys.argv[0]} filename")
36 sys.exit(1)
37 filename = sys.argv[1]
38
39 with open(filename, "w") as fp:
40 print("// Auto-generated by Programs/freeze_test_frozenmain.py", file=fp)
41 frozenmain = os.path.join(PROGRAM_DIR, 'test_frozenmain.py')
42 dump(fp, frozenmain, 'test_frozenmain')
43
44 print(f"{filename} written")
45
46
47if __name__ == "__main__":

Callers 1

Calls 4

dumpFunction · 0.70
openFunction · 0.50
exitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…