[Python-Dev] PEP 382 update
"Martin v. Löwis"
martin at v.loewis.de
Thu Apr 30 11:08:08 CEST 2009
Guido found out that I had misunderstood the existing
pkg mechanism: If a "zope" package is imported, and
it uses pkgutil.extend_path, then it won't glob for files
ending in .pkg, but instead searches the path for
files named zope.pkg.
IOW, this is unsuitable as a foundation of PEP 382. I have
now changed the PEP to call the files .pth, more in line
with how top-level .pth files work, and added a statement
that the import feature of .pth files is not provided for
package .pth files (use __init__.py instead).
Regards,
Martin
More information about the Python-Dev
mailing list