Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'english.': 0.04; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:script': 0.09; '23,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:import': 0.16; 'wrote:': 0.18; 'module': 0.19; 'import': 0.22; 'header:User- Agent:1': 0.23; 'propose': 0.24; 'fine': 0.24; 'cheers,': 0.24; 'script': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'see,': 0.30; 'fri,': 0.33; 'could': 0.34; "can't": 0.35; 'but': 0.35; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'numbers': 0.61; 'simply': 0.61; "you're": 0.61; '"one': 0.84; 'subject:All': 0.84; 'do:': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Wolfgang Maier Subject: Re: All-numeric script names and import Date: Fri, 23 May 2014 11:22:36 +0200 References: <1714fbce-827f-4ba5-853c-f2f934a75466@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: bio-192-52-35-237.mobile.uni-freiburg.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400836971 news.xs4all.nl 2961 [2001:888:2000:d::a6]:43092 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71920 On 23.05.2014 11:02, Chris Angelico wrote: > On Fri, May 23, 2014 at 6:58 PM, Wolfgang Maier > wrote: >> Latin, you DID use Arabic numbers :) >> > > I may have used an Arabic numeral, but I named my script very > definitely in English. Isn't it obvious? It's read "one dot pie", > which is clearly English! :) > I see, so what you should propose then is a change to import, so that when it can't find a module it will try to import an alternative that's pronounced the same way. Then you could simply do: import one and you're fine :) Cheers, Wolfgang