Why is __init__.py required

David Niergarth jdnier at execpc.com
Mon Aug 2 07:36:36 CEST 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