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

Function _gcd_import

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

Import and return the module based on its name, the package the call is being made from, and the level adjustment. This function represents the greatest common denominator of functionality between import_module and __import__. This includes setting __package__ if the loader did not.

(name, package=None, level=0)

Source from the content-addressed store, hash-verified

Callers 1

__import__Function · 0.70

Calls 3

_sanity_checkFunction · 0.70
_resolve_nameFunction · 0.70
_find_and_loadFunction · 0.70

Tested by

no test coverage detected