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

Method exec_module

crates/wasm/Lib/whlimport.py:136–142  ·  view source on GitHub ↗
(cls, module)

Source from the content-addressed store, hash-verified

134
135 @classmethod
136 def exec_module(cls, module):
137 spec = module.__spec__
138 source = cls._get_source(spec)
139 code = _bootstrap._call_with_frames_removed(
140 compile, source, spec.origin, "exec", dont_inherit=True
141 )
142 _bootstrap._call_with_frames_removed(exec, code, module.__dict__)
143
144
145def remove_prefix(s, prefix):

Callers

nothing calls this directly

Calls 1

_get_sourceMethod · 0.80

Tested by

no test coverage detected