How to access a module's namespace within the module at import

Jason Orendorff jason at jorendorff.com
Wed Jan 16 09:53:40 EST 2002


> I have a module that has a number of classes defined.  In the module 
> initialization code I want to look at the __dict__ of the module and 
> examine the classes that have been defined.

vars()

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list