[Python-Dev] Draft PEP: "Simplified Package Layout and Partitioning"

Nick Coghlan ncoghlan at gmail.com
Fri Jul 22 03:03:26 CEST 2011


On Fri, Jul 22, 2011 at 10:53 AM, Glenn Linderman <v+python at g.nevcal.com> wrote:
> Ah yes.  It means there has to be one more rule for disambiguation, which
> Nick supplied.  Your case wasn't clear to me from your first description,
> however.  As long as there is an ordering, and it is documented, it is not
> particularly confusing, however.

The genuinely confusing part is that x.py still takes precedence, even
if it appears on sys.path *after* x/y.py.

However, we're forced into that behaviour by backwards compatibility
requirements. The alternative of allowing x/y.py to take precedence
has been rejected on those grounds more than once.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list