Retrieving classes from a module...

Thomas Aanensen thoaan at
Tue Feb 17 10:47:10 CET 2004

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

Tanks. But I already knew about that one.

The problem is that it returns all the calsses from the imported modules
aswell. I ONLY want the names of the classes declared in the specific

Any ideas?

More information about the Python-list mailing list