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

Method exec_module

Lib/importlib/_bootstrap_external.py:741–747  ·  view source on GitHub ↗

Execute the module.

(self, module)

Source from the content-addressed store, hash-verified

739 """Use default semantics for module creation."""
740
741 def exec_module(self, module):
742 """Execute the module."""
743 code = self.get_code(module.__name__)
744 if code is None:
745 raise ImportError(f'cannot load module {module.__name__!r} when '
746 'get_code() returns None')
747 _bootstrap._call_with_frames_removed(exec, code, module.__dict__)
748
749
750class SourceLoader(_LoaderBasics):

Callers

nothing calls this directly

Calls 1

get_codeMethod · 0.45

Tested by

no test coverage detected