[Distutils] namespace packages (and PEP 382)

Lennart Regebro regebro at gmail.com
Sun Apr 25 10:07:26 CEST 2010

On Sun, Apr 25, 2010 at 03:34, P.J. Eby <pje at telecommunity.com> wrote:
> One thing that's not entirely clear at the moment in PEP 382, though, is
> that it doesn't really specify how the other sys.path entries are found and
> mapped -- presumably it's something like os.path.join(syspathentry,
> *pkgname.split('.')) -- but the handling for such path entries isn't really
> described.  In a Python version where NullImporter exists (2.5+), though,
> the cost of extra nonexistent __path__ entries is negligible, so I suppose
> filtering the entries for directory existence and the presence of other .pth
> files isn't necessary.

PEP 382 also could benefit from some examples. As it is now, you
really have to understand the details of both namespace packages and
.pth files to understand it.
Lennart Regebro: Python, Zope, Plone, Grok
+33 661 58 14 64

More information about the Distutils-SIG mailing list