Where is the c source code of the import mechanism that ignores invalid directory?

Chris Angelico rosuav at gmail.com
Tue Jul 21 18:47:02 CEST 2015


On Wed, Jul 22, 2015 at 2:44 AM, Shiyao Ma <i at introo.me> wrote:
> Yep. I followed from bltmodule.c(the import function) and got to the
> import.c file, and finally got lost.
>

What version of CPython are you looking at? If it's a sufficiently
recent version, you may want to look at importlib instead.

https://docs.python.org/3/library/importlib.html

That'll be a LOT easier to work through.

ChrisA


More information about the Python-list mailing list