Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41920
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <malaclypse2@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.070 |
| X-Spam-Evidence | '*H*': 0.86; '*S*': 0.00; 'problem?': 0.07; 'ambiguity': 0.09; 'builtin': 0.09; 'fullname': 0.09; 'collections': 0.16; 'subject:import': 0.16; 'underlying': 0.16; 'wrote:': 0.18; 'module': 0.19; "aren't": 0.24; 'helpful': 0.24; 'mon,': 0.24; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '25,': 0.31; 'programmers': 0.33; 'received:209.85': 0.35; 'tool': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'right?': 0.36; 'changing': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'von': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'times': 0.62; "you've": 0.63; 'address': 0.63; 'name': 0.63; 'kind': 0.63; 'here': 0.66; 'mar': 0.68; 'moves': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=pzEZ/rOIo6+Vti1lQgn3dd4j8HnlGqAE9g6l+LHKxPE=; b=zOu75/VsqrXBgTrAenscxdUHq7bYzry2e5GU9lDwluqvCrRBxHbYU070xrFzNCKMyU GWU587FUbM29xaOdBymlhgmHWnL1dB9Jmx+0CxNcgL/WO3bOZhUp6TtbiRrvBO6/itEb C4saynCtuTryWTD2m0hyKvDFfKmQONYPqnIILZxtgbse9suq9M79zKKCudHMuRaO7E+h CnB4XHTzzTcHbwawqw0Ib6o37rBWxHVLaDyJdcifhxdoeQ4v5FMuu521RXbAahuHX/N8 nzg04CWIQI36MA6i8VMvd0ouT9/mzWa5IOi4/kwwN3wBMv7yBQTh8yBCd2/zE7SaDUa9 Ih8g== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.178.130 with SMTP id cy2mr5073850pbc.100.1364315634652; Tue, 26 Mar 2013 09:33:54 -0700 (PDT) |
| In-Reply-To | <0f669e21-5fd1-402e-9d96-55aa647d1030@googlegroups.com> |
| References | <mailman.3685.1364166787.2939.python-list@python.org> <514f9a0b$0$30001$c3e8da3$5496439d@news.astraweb.com> <0f669e21-5fd1-402e-9d96-55aa647d1030@googlegroups.com> |
| Date | Tue, 26 Mar 2013 12:33:54 -0400 |
| Subject | Re: import in Python3.3 |
| From | Jerry Hill <malaclypse2@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3754.1364315646.2939.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1364315646 news.xs4all.nl 6939 [2001:888:2000:d::a6]:57372 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:41920 |
Show key headers only | View raw
On Mon, Mar 25, 2013 at 11:49 PM, rocky <rocky@gnu.org> wrote: >> On Sun, 24 Mar 2013 18:12:49 -0500, Fabian von Romberg wrote: >> > I have a package name collections and inside of my package I want to > I find this kind of thing sad: it feels to me that programmers are working around somewhat arbitrary and changing restrictions. Rather than avoid names like "collections", why not try to address the underlying problem? There isn't an ambiguity here in my view: the fullname is mypackage.collections You've said a couple of times now that the original author has a package named "mypackage" with a module "collections" in it. As far as I can tell, that's untrue. The original post claims to have a package named "collections", which is colliding with the builtin module of the same name. As far as I can tell, all of your suggestions about using your pyimport-relative tool aren't helpful unless the author re-names his package from "collections" to "mypackage" and then moves all of their code into a "collections" module inside "mypackage", right? -- Jerry
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
import in Python3.3 Fabian von Romberg <fromberg100@hotmail.com> - 2013-03-24 18:12 -0500
Re: import in Python3.3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-25 00:27 +0000
Re: import in Python3.3 Fabian von Romberg <fromberg100@hotmail.com> - 2013-03-24 20:39 -0500
Re: import in Python3.3 rocky <rocky@gnu.org> - 2013-03-25 20:49 -0700
Re: import in Python3.3 Jerry Hill <malaclypse2@gmail.com> - 2013-03-26 12:33 -0400
Re: import in Python3.3 rocky <rocky@gnu.org> - 2013-03-26 11:41 -0700
Re: import in Python3.3 rocky <rocky@gnu.org> - 2013-03-26 11:41 -0700
Re: import in Python3.3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-26 23:11 +0000
csiph-web