Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94299 > unrolled thread

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

Started byChris Angelico <rosuav@gmail.com>
First post2015-07-22 02:47 +1000
Last post2015-07-22 02:47 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Where is the c source code of the import mechanism that ignores invalid directory? Chris Angelico <rosuav@gmail.com> - 2015-07-22 02:47 +1000

#94299 — Re: Where is the c source code of the import mechanism that ignores invalid directory?

FromChris Angelico <rosuav@gmail.com>
Date2015-07-22 02:47 +1000
SubjectRe: Where is the c source code of the import mechanism that ignores invalid directory?
Message-ID<mailman.821.1437497225.3674.python-list@python.org>
On Wed, Jul 22, 2015 at 2:44 AM, Shiyao Ma <i@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web