Paul Rudin wrote:
Gregory Ewing <greg.ew...@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.)

--
Greg

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to