embarrassing class question

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Oct 29 04:18:03 EDT 2010


Brendan wrote:
> I use
> Python sporadically, and frequently use the dir command to learn or
> remind myself of class methods.

You can clean up dir() by defining __all__ as a list of
names that you want to officially export. Other names will
still be there, but they won't show up in the dir() listing.

-- 
Greg



More information about the Python-list mailing list