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

Function builtin_mod

Tools/importbench/importbench.py:52–59  ·  view source on GitHub ↗

Built-in module

(seconds, repeat)

Source from the content-addressed store, hash-verified

50
51
52def builtin_mod(seconds, repeat):
53 """Built-in module"""
54 name = 'errno'
55 if name in sys.modules:
56 del sys.modules[name]
57 # Relying on built-in importer being implicit.
58 yield from bench(name, lambda: sys.modules.pop(name), repeat=repeat,
59 seconds=seconds)
60
61
62def source_wo_bytecode(seconds, repeat):

Callers

nothing calls this directly

Calls 2

benchFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…