[Import-SIG] What if namespace imports weren't special?

Barry Warsaw barry at python.org
Mon Jul 11 16:30:23 CEST 2011

On Jul 11, 2011, at 05:32 PM, Nick Coghlan wrote:

>One question then is whether, given that a partitioned package has
>already been identified, should unmarked directories later on sys.path
>count as part of that package? My answer is no, as this is the only
>answer that provides consistent behaviour. Otherwise, unmarked
>directories may or may not be detected as part of the package
>depending on whether or not a partitioned package directory was found
>earlier on the path.

This is my biggest concern.  While I think PJE's proposal has some appeal, I'm
worried that it will be very difficult to debug when things go wrong.  I'm
also concerned that introspection may not be possible without "going through

By this I mean, on a *nix system it would be very easy to identify all the
package portions on a file system with a simple `locate *.pyp`.  So I'm still
in favor of the marker files approach.

-------------- 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/20110711/870e6333/attachment.pgp>

More information about the Import-SIG mailing list