[Import-SIG] Where to discuss PEP 382 vs. PEP 402 (namespace packages)?

Barry Warsaw barry at python.org
Mon Mar 12 06:07:03 CET 2012


On Mar 12, 2012, at 12:28 PM, Nick Coghlan wrote:

>Why is this a problem?

% mkdir parent
% mkdir parent/zope.pyp
% touch parent/zope.pyp/__init__.py
% PYTHONPATH=parent python3.2
Python 3.2.3rc1 (default, Mar  9 2012, 23:02:43) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zope
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named zope
>>> import zope.pyp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named zope.pyp
>>> 
% mv parent/zope{.pyp,}/
% PYTHONPATH=parent python3.2
Python 3.2.3rc1 (default, Mar  9 2012, 23:02:43) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zope
>>> 

>Delaying adoption of a new feature due to the need to maintain compatibility
>with older versions of Python is hardly a novel situation for a Linux
>distribution.

This PEP was motivated by a problem encountered by vendors, so all else being
equal, we shouldn't trade one vendor problem for another.

More after sleep.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/import-sig/attachments/20120311/7e1f9cfb/attachment.pgp>


More information about the Import-SIG mailing list