Retrieving classes from a module...

Thomas Aanensen thoaan at stud.cs.uit.no
Tue Feb 17 04:47:10 EST 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
module..


Any ideas?





More information about the Python-list mailing list