Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94299
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'cpython': 0.05; 'subject:code': 0.07; 'cc:addr:python-list': 0.09; '22,': 0.09; 'lost.': 0.09; 'through.': 0.09; 'wed,': 0.15; 'file,': 0.15; 'instead.': 0.15; 'subject: \n ': 0.15; 'cc:name:python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:import': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'followed': 0.27; 'message- id:@mail.gmail.com': 0.27; 'subject:that': 0.29; 'version,': 0.30; 'url:python': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'url:library': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'version': 0.38; 'subject:the': 0.39; 'url:3': 0.60; 'finally': 0.70; 'jul': 0.72; 'chrisa': 0.84; 'function)': 0.84; 'subject:Where': 0.84; 'subject:source': 0.84; "that'll": 0.84; 'to:none': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=utcjPtd+R9x8vSChnGaSpU2fR7dEZdUxpS24oUo9P38=; b=cn8XiEt3TNy08L7aHorGEez58L8tRuLmwpRliLAwq8fseU914fmfIG1WvdDgtI4w1j /qUt2qMqvoKinVNds5YkBvq5Ck0YM1Ug0FSw+dlXpsvzUZPbENDdSp81eJ0/baj4yyO6 IGC+5Wt8xWO/ScOUsR2L/OM9BppVJx42qFIagq1KD1K2IfIRu4XUB0hTKYsV/qSKL67A vumILBUTMdFN42nXk9Zkv3WJhvJ0ily0HtNo4guaABXU5A7LbT173oFtG64HqSNjKqO7 /pXvUohEQDsdCUz+aVWcTuREPa33RyCXdZj/XFd8C8BEUmqquGTNfuRVaSJuxqZDFrXM Idag== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.4.1 with SMTP id 1mr44477146ioe.10.1437497222548; Tue, 21 Jul 2015 09:47:02 -0700 (PDT) |
| In-Reply-To | <CAJQX3DwhwL7Vpdm+jEy0u2nad3v+xyuyQ2KMkbKn5LBx=pXENw@mail.gmail.com> |
| References | <CAJQX3DxkOd80rujmRf_eafTkxfq5U1hq5SimSZV=ux3VmV5bzw@mail.gmail.com> <molr98$b9t$1@ger.gmane.org> <CAJQX3DwhwL7Vpdm+jEy0u2nad3v+xyuyQ2KMkbKn5LBx=pXENw@mail.gmail.com> |
| Date | Wed, 22 Jul 2015 02:47:02 +1000 |
| Subject | Re: Where is the c source code of the import mechanism that ignores invalid directory? |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.821.1437497225.3674.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1437497225 news.xs4all.nl 2934 [2001:888:2000:d::a6]:55021 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:94299 |
Show key headers only | View raw
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