[Python-Dev] PEP 328: path (original) (raw)

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