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: 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: <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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Mon, Mar 25, 2013 at 11:49 PM, rocky 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 workin= g around somewhat arbitrary and changing restrictions. Rather than avoid na= mes like "collections", why not try to address the underlying problem? Ther= e 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? --=20 Jerry