Docs for __init__.py?

Dinu C. Gherman gherman at darwin.in-berlin.de
Sat Jul 15 14:26:41 EDT 2000


Matthew Cline wrote:
> 
> The documentation for __init__.py at python.org seems a little
> sparse.  Is there anything that goes into more depth?  Other
> than reading the Python source code?
> 
> 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?"

Try Guido's tutorial which contains some sections about
the usage of __init__.py files.

Dinu

-- 
Dinu C. Gherman
................................................................
"The only possible values [for quality] are 'excellent' and 'in-
sanely excellent', depending on whether lives are at stake or 
not. Otherwise you don't enjoy your work, you don't work well, 
and the project goes down the drain." 
                    (Kent Beck, "Extreme Programming Explained")



More information about the Python-list mailing list