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


Groups > comp.lang.python > #71921

Re: All-numeric script names and import

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.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 UNSURE 0.239
X-Spam-Level **
X-Spam-Evidence '*H*': 0.61; '*S*': 0.09; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:import': 0.16; 'wrote:': 0.18; 'module': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'propose': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'see,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'could': 0.34; "can't": 0.35; 'received:google.com': 0.35; 'should': 0.36; 'being': 0.38; 'pm,': 0.38; 'dangerous': 0.60; 'new': 0.61; 'simply': 0.61; "you're": 0.61; 'happen': 0.63; 'results': 0.69; 'devastating': 0.84; 'proposal.': 0.84; 'subject:All': 0.84; 'do:': 0.91; 'zealand': 0.91; 'to:none': 0.92; 'imagine': 0.93
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=3s1tUBLKSWFuMZibmlY1cR7JkECITkyMLiZVqIWPm4M=; b=bc48s/+9TWz7utb3rMjQSk4E9GzwjbrnrKGQ65IXKXp9jTySo3BiKsjP0us/VbvIE5 7RWllLW/NjDpXvhjq21k8LCFZzyGmwPke51g7zSN2pTxsGVihWIKvHFvP7Qkkj7w4gGz Ki5z9p4gcPdkVIueblBRJrhA3RIBpjXH4FJRHcu9hE82oV5Q5kT0w4+dcQzB0mqdRUky Nnp7aHt8pMynGsBD/63HS6JYtZ9JZfrtEDm3da5zWm4ofj+R0oZSK4yD5ThhibYGJPMG 5aPto6grpiRxnF8cwfkyPRmGWQL8r8X9rFrFK8U3zeE/eUM+1Ly1nSyX5buGRQGEn2Zw 3+yQ==
MIME-Version 1.0
X-Received by 10.52.53.69 with SMTP id z5mr509512vdo.42.1400837326472; Fri, 23 May 2014 02:28:46 -0700 (PDT)
In-Reply-To <lln40s$mv5$1@ger.gmane.org>
References <mailman.10190.1400680014.18130.python-list@python.org> <1714fbce-827f-4ba5-853c-f2f934a75466@googlegroups.com> <CAPTjJmrfFJYk0P14tZiakWE4uFMSFaQ8pujOuNG49qnUOD-b_A@mail.gmail.com> <lln2kj$3op$1@ger.gmane.org> <CAPTjJmqUZ5w1GOQQ1g2Rd5wb_Q3Hy0fHgZkJPV25zMAx_dUmOQ@mail.gmail.com> <lln40s$mv5$1@ger.gmane.org>
Date Fri, 23 May 2014 19:28:46 +1000
Subject Re: All-numeric script names and import
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-Mailman-Approved-At Fri, 23 May 2014 11:29:22 +0200
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.10238.1400837363.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400837363 news.xs4all.nl 2889 [2001:888:2000:d::a6]:46073
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71921

Show key headers only | View raw


On Fri, May 23, 2014 at 7:22 PM, Wolfgang Maier
<wolfgang.maier@biologie.uni-freiburg.de> wrote:
> 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 :)

This strikes me as a very dangerous proposal. Imagine what would
happen when you try to "import chip" in New Zealand and it goes out
looking for "chup.py". Or the devastating results of "yes.py" and
"no.py" being indistinguishable on politicians' builds of Python...

ChrisA

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


Thread

All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-21 23:46 +1000
  Re: All-numeric script names and import Mark H Harris <harrismh777@gmail.com> - 2014-05-21 09:24 -0500
    Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-22 00:40 +1000
  Re: All-numeric script names and import Mark H Harris <harrismh777@gmail.com> - 2014-05-21 09:24 -0500
  Re: All-numeric script names and import Rustom Mody <rustompmody@gmail.com> - 2014-05-22 19:08 -0700
    Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-23 13:26 +1000
    Re: All-numeric script names and import Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-05-23 10:58 +0200
    Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-23 19:02 +1000
    Re: All-numeric script names and import Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-05-23 11:22 +0200
    Re: All-numeric script names and import Chris Angelico <rosuav@gmail.com> - 2014-05-23 19:28 +1000
    Re: All-numeric script names and import Michael Torrie <torriem@gmail.com> - 2014-05-23 16:52 -0600

csiph-web