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

Function require_pure_python

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

Source from the content-addressed store, hash-verified

126 assert module.__spec__.origin == 'frozen', module.__spec__
127
128def require_pure_python(module, *, skip=False):
129 _require_loader(module, SourceFileLoader, skip)
130
131def create_extension_loader(modname, filename):
132 # Apple extensions must be distributed as frameworks. This requires

Callers 2

test_python_compatMethod · 0.85
test_isolated_configMethod · 0.85

Calls 1

_require_loaderFunction · 0.85

Tested by 2

test_python_compatMethod · 0.68
test_isolated_configMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…