[Twisted-Python] teud and __all__

Itamar Shtull-Trauring lists at itamarst.org
Thu Oct 11 19:28:54 EDT 2001

Glyph Lefkowitz wrote:

> Also, about the __all__ attribute... might I suggest that this is a poor 
> choice of names, since this already means something to the interpreter?  
> __teud__ might be a better way to put it.  Certainly __init__.py's 
> shouldn't have an __all__ in them that describes classes (or modules) to 
> *document*.

That's why I chose it. __all__ means "all stuff to import when you do 
'from module import *'". In other words, the module's public interfaces, 
exactly the one ones you want to document.

More information about the Twisted-Python mailing list