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

Function main

Lib/test/test_importlib/partial/cfimport.py:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 os._exit(1)
24
25def main():
26 for j in range(NLOOPS):
27 threads = []
28 for i in range(NTHREADS):
29 threads.append(threading.Thread(target=t2 if i % 1 else t1))
30 for thread in threads:
31 thread.start()
32 for thread in threads:
33 thread.join()
34 sys.modules.pop('concurrent.futures', None)
35 sys.modules.pop('concurrent.futures.thread', None)
36
37if __name__ == "__main__":
38 main()

Callers 1

cfimport.pyFile · 0.70

Calls 4

appendMethod · 0.45
startMethod · 0.45
joinMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…