How to list currently defined classes, methods etc

Peter Hansen peter at engcorp.com
Wed Nov 30 20:55:46 EST 2005


Deep wrote:
> If i start a python shell. Is there a way to list the currently defined
> classes, methods,
> variables?

Does this work?

 >>> dir()

-Peter




More information about the Python-list mailing list