A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-April/044022.html below:

[Python-Dev] PEP 328: __path__

[Python-Dev] PEP 328: __path__ [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4