Skip to content Skip to sidebar Skip to footer

Where Is The _imp Module Located In Python 3.4?

I was trying to understand how relative imports work with regular packages, and I was looking at my Python 3.4.3 folder for examples. In a file called machinery.py that I found in

Solution 1:

As help(_imp) says:

_imp - (Extremely) low-level import machinery bits as used by importlib and imp.

It's a built-in module:

>>> _imp
<module'_imp' (built-in)>

and the source can be found in Python/import.c.

Post a Comment for "Where Is The _imp Module Located In Python 3.4?"