[Python-Dev] Draft: PEP for imports

Phillip J. Eby pje at telecommunity.com
Fri Jan 30 21:20:33 EST 2004

At 08:39 PM 1/30/04 -0500, Barry Warsaw wrote:
>On Fri, 2004-01-30 at 20:25, Phillip J. Eby wrote:
> > At 08:15 PM 1/30/04 -0500, Barry Warsaw wrote:
> >
> > >Other than relative imports, the only other thing I occasionally miss in
> > >Python's import semantics is the fact that more than one file system
> > >space can't be mapped into one package namespace without trickery.  E.g.
> > >if in "import my.package.sub1" and "import my.package.sub2", the
> > >directories sub1 and sub2 didn't have to live under a directory called
> > >my/package.
> >
> > Didn't Guido write a 'pkgutil' module for this?  Or am I confusing what he
> > wrote with what you want?  :)
>He did!  I totally spaced on that.  Okay, Python packages are more close
>to perfect than I thought. :)

Obviously, the time machine still works in California, but now with added 
cross-continent spatial reloaction, allowing him to write 'pkgutil' not 
only some time ago, but on the opposite coast as well.  :)

More information about the Python-Dev mailing list