Docs for __init__.py?
Paul Prescod
paul at prescod.net
Sat Jul 15 06:26:52 EDT 2000
Matthew Cline wrote:
>
...
>
> Specifically, does the package name have to corespond to the
> name of the directory that __init__.py is in? Or is there
> some way for __init__.py to say "No, *this* is the name for the
> package?"
No, Python doesn't read the __init__.py until after it has found the
package using the traditional lookup mechanisms.
--
Paul Prescod - Not encumbered by corporate consensus
It's difficult to extract sense from strings, but they're the only
communication coin we can count on.
- http://www.cs.yale.edu/~perlis-alan/quotes.html
More information about the Python-list
mailing list