listing attributes

Thomas Girod girodt at gmail.com
Tue Feb 14 09:01:05 EST 2006


Thanks a lot for all your answers !

Thanks to you I resolved this problem. Here is what i've done :

 [...]
 for (_,v) in getmembers(self):
    if isinstance(v,Property):
       st += "\t%s\n" % str(v)
 [...]

as all the attributes I want to get are instances of Property or a
subclass of Property, it does the trick.




More information about the Python-list mailing list