[Twisted-Python] teud and __all__

Itamar Shtull-Trauring lists at itamarst.org
Fri Oct 12 01:52:33 EDT 2001


Glyph Lefkowitz wrote:


> Hmm, I guess I was wrong.  I thought that in a package's __init__.py, 
> __all__ defined those modules which were imported automatically when the 
> package was imported.  After disproving that theory I realize that 
> there's probably no reason not to use __all__. :-)

And IIRC the python development team has made some effort to add __all__ 
to every module in the standard library. In certain cases (e.g. the 
threading module) this approach breaks down, of course.






More information about the Twisted-Python mailing list