How to list currently defined classes, methods etc

Bengt Richter bokr at oz.net
Wed Nov 30 22:00:35 EST 2005


On Wed, 30 Nov 2005 20:55:46 -0500, Peter Hansen <peter at engcorp.com> wrote:

>Deep wrote:
>> If i start a python shell. Is there a way to list the currently defined
>> classes, methods,
>> variables?
>
>Does this work?
>
> >>> dir()
>
  >>> help(__name__)

might be interesting for the OP too ;-)

Regards,
Bengt Richter



More information about the Python-list mailing list