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

Method child

Lib/test/test_importlib/metadata/test_zip.py:71–78  ·  view source on GitHub ↗
(conn, root)

Source from the content-addressed store, hash-verified

69 parent_conn, child_conn = ctx.Pipe()
70
71 def child(conn, root):
72 try:
73 before = FastPath.__new__.cache_info().currsize
74 FastPath(root)
75 after = FastPath.__new__.cache_info().currsize
76 conn.send((before, after))
77 finally:
78 conn.close()
79
80 proc = ctx.Process(target=child, args=(child_conn, zip_path))
81 proc.start()

Calls 3

FastPathClass · 0.90
sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected