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

Function _load

Lib/importlib/_bootstrap.py:959–969  ·  view source on GitHub ↗

Return a new module object, loaded by the spec's loader. The module is not added to its parent. If a module is already in sys.modules, that existing module gets clobbered.

(spec)

Source from the content-addressed store, hash-verified

957# A method used during testing of _load_unlocked() and by
958# _load_module_shim().
959def _load(spec):
960 """Return a new module object, loaded by the spec's loader.
961
962 The module is not added to its parent.
963
964 If a module is already in sys.modules, that existing module gets
965 clobbered.
966
967 """
968 with _ModuleLockManager(spec.name):
969 return _load_unlocked(spec)
970
971
972# Loaders #####################################################################

Callers 2

_load_dynamicMethod · 0.90
_load_module_shimFunction · 0.70

Calls 2

_ModuleLockManagerClass · 0.70
_load_unlockedFunction · 0.70

Tested by

no test coverage detected