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

Method import_module

Lib/test/test_import/__init__.py:1427–1430  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1425 rmtree(self.dir_name)
1426
1427 def import_module(self):
1428 ns = globals()
1429 __import__(self.module_name, ns, ns)
1430 return sys.modules[self.module_name]
1431
1432 def test_basics(self):
1433 mod = self.import_module()

Calls 1

__import__Function · 0.85