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


Groups > comp.lang.python > #60374

Re: Importing by file name

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; '(except': 0.07; 'bootstrap': 0.07; 'subject:file': 0.07; 'executable': 0.09; 'python': 0.11; '3.3,': 0.16; 'behaviour.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it),': 0.16; 'wrote:': 0.18; 'bit': 0.19; "python's": 0.19; 'written': 0.21; 'import': 0.22; 'lets': 0.24; 'replace': 0.24; 'script.': 0.24; 'mon,': 0.24; "haven't": 0.24; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; '(although': 0.31; '25,': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'stuff': 0.32; 'bugs': 0.33; 'implemented': 0.33; 'maybe': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'tight': 0.36; "i'll": 0.36; 'too': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'anything': 0.39; 'recent': 0.39; 'moving': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'most': 0.60; 'full': 0.61; 'nobody': 0.68; 'power': 0.76; '3.4': 0.84; 'much,': 0.84; 'magical': 0.91; '2013': 0.98
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:to :content-type; bh=1hrFSuSvENsRYE0YPFgq06E9zEIWcyGoP/1l1yMBjPU=; b=rNT2L9VgpiY+jT0xwbPUmSIulJ65j4+/KGXUn1RHc5Lr70KdcMXOImEIgWD1b7cYkJ xnOpJUtvLXHUiiOmix7Huq24VfBQnEQgSnYAbrnx+HpLsCJTpAd7hVGzx1MJvOOtgoFN GcVVOU1rWp0fORcQ3rOgQ29WBC9TTWJZ1wdoMgCGN0T7vU2jeEVK8tQTYJoWtE9ccWUu a2ThimimEEyanYHo1zuh+8P7K5y7CRBFppiG0rwaMCGBUfWcxzIbhgkQghJ6hSfpMGLD oFJnQH4S4+zKgYJMH2Huag13DEbBkmgPzWBONl/6oNVxxoNEP1RvOyCF6LAOhOQqoFf7 WVvA==
MIME-Version 1.0
X-Received by 10.67.21.226 with SMTP id hn2mr22777826pad.69.1385303112370; Sun, 24 Nov 2013 06:25:12 -0800 (PST)
In-Reply-To <52920a19$0$29993$c3e8da3$5496439d@news.astraweb.com>
References <CAPTjJmqhiyT9zVHFRyKH0UwhdhFgZxA1rcbarChePMyfK7dDTA@mail.gmail.com> <CALwzidmqKkpuugv2zvu-8RpoVZF899G2Hpdmd_kVn8a33WMWFw@mail.gmail.com> <mailman.3119.1385280468.18130.python-list@python.org> <52920a19$0$29993$c3e8da3$5496439d@news.astraweb.com>
Date Mon, 25 Nov 2013 01:25:12 +1100
Subject Re: Importing by file name
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.3134.1385303115.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385303116 news.xs4all.nl 15892 [2001:888:2000:d::a6]:53586
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60374

Show key headers only | View raw


On Mon, Nov 25, 2013 at 1:15 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Sun, 24 Nov 2013 19:07:38 +1100, Chris Angelico wrote:
>
>> I know the recent Pythons give a lot of import power to the script. But
>> maybe I'm just asking too much, and some of this stuff really is magical
>> and implemented in C?
>
> That was the case up to 3.3, but Python 3.4 has the import machinery re-
> written in pure Python (except for a tiny bit of bootstrapping machinery,
> if I understand correctly). I understand that nobody understood the
> import machinery in full (although there were a couple of people who
> understood most of it), and that moving it to Python was a Herculean job.
> If I remember correctly, it uncovered a number of undetected bugs and
> dark corners with unspecified behaviour.

Alright, I'll sit tight for 3.4 beta then... or maybe play with what's
currently in trunk (which is my 'python3' executable on Sikorsky). I
haven't seen anything that lets me replace the master in that way, but
there is a HUGE amount of Python's bootstrap that I have never even
peeked into.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Importing by file name Chris Angelico <rosuav@gmail.com> - 2013-11-24 19:07 +1100
  Re: Importing by file name Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-24 14:15 +0000
    Re: Importing by file name Chris Angelico <rosuav@gmail.com> - 2013-11-25 01:25 +1100
    Re: Importing by file name Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-24 16:30 +0000

csiph-web