[Python-Dev] PEP 328: __path__
François Pinard
pinard at iro.umontreal.ca
Mon Apr 5 14:06:41 EDT 2004
[Greg Ewing]
> Aahz <aahz at pythoncraft.com>:
> > Between the addition of ``as`` in Python 2.0 and the new syntax &
> > semantics for ``import``, there is no longer a need for ``__path__``, and
> > it is now officially deprecated.
> NO! WAIT!
> I have a project in which I'm modifying a module's __path__,
> and it's *not* to work around any deficiencies in the relative
> import mechanism. Rather it's to make a set of directories
> behave like a single package for import purposes, with the
> members of the set determined at run time.
Same here.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-Dev
mailing list