> Looks rather simple to me... Anyway, you could avoid calling getattr > twice, if you iterate over vars(aModule).itervalues()
> def getClassList(aModule): > return [cls for cls in vars(aModule).itervalues() > if inspect.isclass(cls)] > (And note that there is no need for using \ at the line ends, because > of the []) That's what I've been looking for. Thank you. Regards, Laurent Laffont -- http://mail.python.org/mailman/listinfo/python-list