How to list currently defined classes, methods etc

Peter Hansen peter at engcorp.com
Thu Dec 1 02:55:46 CET 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