Hi,

I want to get all classes of a module in a list. I wrote this code but I 
wonder
if there's not a simpler solution


import inspect

def getClassList(aModule):
    return [getattr(aModule, attName) \
            for attName in aModule.__dict__  \
            if inspect.isclass(getattr(aModule, attName))]

Regards,

Laurent Laffont 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to