embarrassing class question

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Oct 30 08:30:21 CEST 2010

Paul Rudin wrote:
> Gregory Ewing <greg.ewing at canterbury.ac.nz> writes:
>>You can clean up dir() by defining __all__ as a list of
>>names that you want to officially export.
> I'm not sure that's necessarily a good idea... when you're trying to figure
> out why something behaves in a certain way you want to check for the
> presence of methods with special names.

If you need to find out what's really there, you can always
look at module.__dict__.keys().

(BTW, there are no function names that have a special meaning
in a module dict -- a module is not like a class.)


More information about the Python-list mailing list