MCPcopy Index your code
hub / github.com/RustPython/RustPython / create_module

Method create_module

Lib/importlib/_bootstrap.py:993–998  ·  view source on GitHub ↗

Create a built-in module

(spec)

Source from the content-addressed store, hash-verified

991
992 @staticmethod
993 def create_module(spec):
994 """Create a built-in module"""
995 if spec.name not in sys.builtin_module_names:
996 raise ImportError(f'{spec.name!r} is not a built-in module',
997 name=spec.name)
998 return _call_with_frames_removed(_imp.create_builtin, spec)
999
1000 @staticmethod
1001 def exec_module(module):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected