Finding all classes in a module

Donnal Walter donnal at donnal.net
Fri Aug 9 16:10:09 CEST 2002


Jim Meier <jim at dsdd.org wrote in message news:<LwJ49.121080> import m
> 
> for k,v in m.__dict__:
> 	if isintance(v, types.ClassType):
> 		print k

Traceback (most recent call last):
  File "<pyshell#11>", line 1, in ?
    for k,v in graph.__dict__:
ValueError: too many values to unpack

Donnal Walter
Arkansas Children's Hospital



More information about the Python-list mailing list