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

Method re_load

Lib/test/test_import/__init__.py:2773–2781  ·  view source on GitHub ↗
(self, name, mod)

Source from the content-addressed store, hash-verified

2771 )
2772
2773 def re_load(self, name, mod):
2774 assert sys.modules[name] is mod
2775 assert mod.__dict__ == mod.__dict__
2776 reloaded = self._load_dynamic(name, self.ORIGIN)
2777 return types.SimpleNamespace(
2778 name=name,
2779 module=reloaded,
2780 snapshot=TestSinglePhaseSnapshot.from_module(reloaded),
2781 )
2782
2783 # subinterpreters
2784

Callers 2

test_basic_reloadedMethod · 0.95

Calls 2

_load_dynamicMethod · 0.95
from_moduleMethod · 0.45

Tested by 2

test_basic_reloadedMethod · 0.76