Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94299
| References | <CAJQX3DxkOd80rujmRf_eafTkxfq5U1hq5SimSZV=ux3VmV5bzw@mail.gmail.com> <molr98$b9t$1@ger.gmane.org> <CAJQX3DwhwL7Vpdm+jEy0u2nad3v+xyuyQ2KMkbKn5LBx=pXENw@mail.gmail.com> |
|---|---|
| Date | 2015-07-22 02:47 +1000 |
| Subject | Re: Where is the c source code of the import mechanism that ignores invalid directory? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.821.1437497225.3674.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
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
csiph-web