Thomas,
> import types
> [ name for name in dir(A) if type(eval('A.'+name)) == types.ClassType ]The == types.ClassType doesn't seem to pick out the classes. Also, I think you should be returning eval( name ) vs. name so that the OP gets a list of objects vs. names? (My take on what the poster wanted). Malcolm _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
