Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'skip:[ 20': 0.04; 'that?': 0.05; 'subject:Python': 0.06; 'feature,': 0.09; 'feature.': 0.09; '-tkc': 0.16; 'ah,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'hrm.': 0.16; 'hypothetical': 0.16; 'jumps': 0.16; 'received:174.136': 0.16; 'subject: \n ': 0.16; 'subject:dependencies': 0.16; 'subject:import': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'import': 0.22; 'least': 0.26; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'said,': 0.30; "i'm": 0.30; "d'aprano": 0.31; 'proposing': 0.31; 'steven': 0.31; 'this.': 0.32; 'python.org': 0.32; 'subject:the': 0.34; 'could': 0.34; 'something': 0.35; 'but': 0.35; 'module.': 0.36; 'charset :us-ascii': 0.36; 'should': 0.36; 'received:10': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'subject:"': 0.60; "you've": 0.63; 'such': 0.63; 'confusion.': 0.84; 'subject:history': 0.84 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1416706253221:2365885087 X-MC-Ingress-Time: 1416706253221 Date: Sat, 22 Nov 2014 19:33:30 -0600 From: Tim Chase To: python-list@python.org Subject: Re: PyWart: "Python's import statement and the history of external dependencies" In-Reply-To: <547131ae$0$12979$c3e8da3$5496439d@news.astraweb.com> References: <066c46c8-a04d-4489-b15a-b603c1b1818b@googlegroups.com> <8661e407-4472-4208-97c2-f666f6502c67@googlegroups.com> <547080a0$0$12981$c3e8da3$5496439d@news.astraweb.com> <547131ae$0$12979$c3e8da3$5496439d@news.astraweb.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416708500 news.xs4all.nl 2904 [2001:888:2000:d::a6]:39330 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 3207919016 X-Received-Bytes: 4291 Xref: csiph.com comp.lang.python:81310 On 2014-11-23 12:00, Steven D'Aprano wrote: > >> > And after all that, it would still fail if you happened to > >> > want to import both "calendar" modules into the same module. > >> > >> __path__ = [] > >> import calendar > >> __path__ = ['my/python/modules'] > >> import calendar as mycalendar > > > > Hrm. Never knew this. Could you point me at some docs on that? > > (searching for "__path__" on python.org isn't turning up much that > > jumps out at me as being correlated) > > You've misunderstood what I said, I was proposing it as a > hypothetical feature, not something existing. Sorry for any > confusion. Ah, thanks. I wondered but should have tried it out to see that it wasn't an existing feature. I'm not sure if/when I would use such a feature, but it was at least an interesting idea. -tkc