[Python-Dev] PEP 328: __path__
Guido van Rossum
guido at python.org
Sun Apr 4 18:27:19 EDT 2004
> > Uh? Maybe you should have some coffee and then try again.
>
> Don't drink coffee, remember? ;-)
Well, whatever you do take to improve your brain function.
> > __path__ has nothing to do with relative import. When I say
> > "import foo.bar" then bar is searched for in foo.__path__. __path__
> > defines which directories comprise the package contents, nothing more
> > or less.
>
> Yeah, I know; I think that ``as`` combined with relative imports can
> obviate most uses for ``__path__``, but I'm now dealing with a family
> emergency, so I'm going to just drop it.
'as' has nothing to do with __path__ either.
__path__ is for distributing a package over multiple directories, and
has nothing to do with how you import it.
So, yes, please drop it.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list