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

Function require_builtin

Lib/test/test_import/__init__.py:112–114  ·  view source on GitHub ↗
(module, *, skip=False)

Source from the content-addressed store, hash-verified

110 return module
111
112def require_builtin(module, *, skip=False):
113 module = _require_loader(module, BuiltinImporter, skip)
114 assert module.__spec__.origin == 'built-in', module.__spec__
115
116def require_extension(module, *, skip=False):
117 # Apple extensions must be distributed as frameworks. This requires

Callers 1

test_builtin_compatMethod · 0.85

Calls 1

_require_loaderFunction · 0.85

Tested by 1

test_builtin_compatMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…