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

Function __import__

crates/vm/Lib/python_builtins/_frozen_importlib.py:1465–1499  ·  view source on GitHub ↗

Import a module. The 'globals' argument is used to infer where the import is occurring from to handle relative imports. The 'locals' argument is ignored. The 'fromlist' argument specifies what should exist as attributes on the module being imported (e.g. ``from module import <fromli

(name, globals=None, locals=None, fromlist=(), level=0)

Source from the content-addressed store, hash-verified

Callers

nothing calls this directly

Calls 6

lenFunction · 0.85
hasattrFunction · 0.85
_gcd_importFunction · 0.70
_calc___package__Function · 0.70
_handle_fromlistFunction · 0.70
partitionMethod · 0.45

Tested by

no test coverage detected