Why is __init__.py required

David Niergarth jdnier at execpc.com
Mon Aug 2 01:36:36 EDT 1999

David Niergarth <jdnier at execpc.com> wrote in message news:...

> It's a feature I've never seen explained.

Oops. From the Python 1.5.2 Tutorial:

... In the simplest case, __init__.py can just be an empty file, but it can
also execute initialization code for the package or set the __all__
variable, ...

More information about the Python-list mailing list