Re: import in Python3.3

2013-03-26 Thread rocky
On Tuesday, March 26, 2013 7:06:02 PM UTC-4, Steven D'Aprano wrote: > On Tue, 26 Mar 2013 08:37:00 -0700, rocky wrote: > > > > > So again I come to import_relative, > > > http://code.google.com/p/pyimport-relative/. And again, I wish this > > > package didn't have to exist. > > > > > > I

Re: import in Python3.3

2013-03-26 Thread Steven D'Aprano
On Tue, 26 Mar 2013 12:33:54 -0400, Jerry Hill wrote: > 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 t

Re: import in Python3.3

2013-03-26 Thread Steven D'Aprano
On Tue, 26 Mar 2013 08:37:00 -0700, rocky wrote: > And again, I get the impression that for the use case asked about, there > isn't much ambiguity. If I am in mypackage.foo and I want to access > mypackage.collections I should be able to say something like that > without ambiguity or that much inf

Re: import in Python3.3

2013-03-26 Thread Rocky Bernstein
On Tue, Mar 26, 2013 at 5:16 PM, Phil Connell wrote: > On Tue, Mar 26, 2013 at 08:37:00AM -0700, rocky wrote: > > And again, I get the impression that for the use case asked about, there > isn't much ambiguity. If I am in mypackage.foo and I want to access > mypackage.collections I should be able

Re: import in Python3.3

2013-03-26 Thread Phil Connell
On Tue, Mar 26, 2013 at 08:37:00AM -0700, rocky wrote: > And again, I get the impression that for the use case asked about, there > isn't much ambiguity. If I am in mypackage.foo and I want to access > mypackage.collections I should be able to say something like that without > ambiguity or that

Re: import in Python3.3

2013-03-26 Thread rocky
On Tuesday, March 26, 2013 12:33:54 PM UTC-4, Jerry Hill wrote: > 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 thin

Re: import in Python3.3

2013-03-26 Thread Jerry Hill
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 working > around somewhat arbitrary and c

Re: import in Python3.3

2013-03-26 Thread rocky
On Tuesday, March 26, 2013 3:04:44 AM UTC-4, Terry Reedy wrote: > On 3/24/2013 7:12 PM, Fabian von Romberg wrote: > > > Hi, > > > > > > I have a package name collections and inside of my package I want to > > > import the collections package from the standard library, but there > > > is name c

Re: import in Python3.3

2013-03-26 Thread Terry Reedy
On 3/24/2013 7:12 PM, Fabian von Romberg wrote: Hi, I have a package name collections and inside of my package I want to import the collections package from the standard library, but there is name conflicts. Yes. I strongly advise against trying to do this. How do I import explicitly from th

Re: import in Python3.3

2013-03-25 Thread rocky
On Sunday, March 24, 2013 8:27:56 PM UTC-4, Steven D'Aprano wrote: > On Sun, 24 Mar 2013 18:12:49 -0500, Fabian von Romberg wrote: > > > > > Hi, > > > > > > I have a package name collections and inside of my package I want to > > > import the collections package from the standard library, bu

Re: import in Python3.3

2013-03-24 Thread Fabian von Romberg
Hi Steven, thanks a lot for the explanation. I will keep in mind not to use names for my modules that can shadow the standard library. Regards, Fabian On 03/24/2013 07:27 PM, Steven D'Aprano wrote: > On Sun, 24 Mar 2013 18:12:49 -0500, Fabian von Romberg wrote: > >> Hi, >> >> I have a package

Re: import in Python3.3

2013-03-24 Thread Steven D'Aprano
On Sun, 24 Mar 2013 18:12:49 -0500, Fabian von Romberg wrote: > Hi, > > I have a package name collections and inside of my package I want to > import the collections package from the standard library, but there is > name conflicts. > > How do I import explicitly from the standard library? You c

import in Python3.3

2013-03-24 Thread Fabian von Romberg
Hi, I have a package name collections and inside of my package I want to import the collections package from the standard library, but there is name conflicts. How do I import explicitly from the standard library? Im working on Python3.3 Thanks in advance and regards, Fabian -- http://mail.p