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

Method exec_module

Lib/importlib/_bootstrap_external.py:753–759  ·  view source on GitHub ↗

Execute the module.

(self, module)

Source from the content-addressed store, hash-verified

751 """Use default semantics for module creation."""
752
753 def exec_module(self, module):
754 """Execute the module."""
755 code = self.get_code(module.__name__)
756 if code is None:
757 raise ImportError(f'cannot load module {module.__name__!r} when '
758 'get_code() returns None')
759 _bootstrap._call_with_frames_removed(exec, code, module.__dict__)
760
761 def load_module(self, fullname):
762 """This method is deprecated."""

Callers

nothing calls this directly

Calls 1

get_codeMethod · 0.45

Tested by

no test coverage detected