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

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


On Jul 11, 2011, at 12:39 AM, P.J. Eby wrote:

>Suppose that we reserve a special directory name, like 'pypkg'.  And, if a
>sys.path directory contains a 'py-pkg' subdirectory, then any directory in
>that directory (recursively) is a package following __path__-assembly
>semantics.

I'm not entirely sold on the idea, but I do have some lovely bikeshed paint.
*If* this idea were to pan out, I think __package__ would be a good directory
name.  Okay, it's not as unimportable itself as py-pkg, but it's still special
enough to have its semantics controlled by Python.

-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/20110711/49b51bc9/attachment.pgp>


More information about the Import-SIG mailing list