Retrieving classes from a module...

Peter Otten __peter__ at web.de
Tue Feb 17 04:40:09 EST 2004


Thomas Aanensen wrote:

> How can I get the names of the classes in a specific module? (I don't need
> the subclasses or superclasses)

>>> pyclbr.readmodule("csv").keys()
['Dialect', 'DictReader', 'excel', 'excel_tab', 'DictWriter', 'Sniffer']
>>>

Peter



More information about the Python-list mailing list