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

Eric Snow ericsnowcurrently at gmail.com
Mon Jul 11 09:04:14 CEST 2011


On Sun, Jul 10, 2011 at 11:18 PM, P.J. Eby <pje at telecommunity.com> wrote:
>
> The present thread ("what if namespaces aren't special?") is an experiment
> to see if we could find a way to dispense with flag files altogether,
> thereby simplifying the terminology and usage, as well as saving us a
> listdir call or two.
>

Ultimately there has to be something to indicate it is a package and
that it is a partition (or whatever it's called).  There would be less
surprises if it followed the current pattern of having a file to
indicate packageness (currently only __init__.py fills this role).

FWIW, I think the solution in the PEP is the clearest approach, if
"partitioned by default" is not an option.  And if that and the other
alternate solutions are not feasible, it would be nice to have them
added to the "rejected" section because they are still reasonable
ideas.  Still, it would be nice if we didn't have to add a new
packageness indicator.

-eric

> _______________________________________________
> Import-SIG mailing list
> Import-SIG at python.org
> http://mail.python.org/mailman/listinfo/import-sig
>


More information about the Import-SIG mailing list