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

Method access_lazy_import

Lib/test/test_lazy_import/__init__.py:1701–1707  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

1699 barrier = threading.Barrier(num_threads)
1700
1701 def access_lazy_import(idx):
1702 try:
1703 barrier.wait()
1704 module = basic_unused.test.test_lazy_import.data.basic2
1705 results[idx] = module
1706 except Exception as e:
1707 errors.append((idx, e))
1708
1709 threads = [
1710 threading.Thread(target=access_lazy_import, args=(i,))

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected