list of properties
Emmanuel Mayssat
emayssat at gmail.com
Thu Feb 16 12:19:11 EST 2012
Hello,
Is there a way to list 'properties' ?
from PyQt4.QtCore import *
class LObject(QObject):
def __init__(self, parent=None):
super(LObject, self).__init__(parent)
self.arg1 = 'toto'
def getArg2(self):
return self.arg1 + " <--"
arg2 = property(getArg2)
l = LObject()
print l.__dict__
returns only arg1
How can I find that arg2 is a 'virtual' attribute (i.e. property)?
Regards,
--
E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120216/078aa0f9/attachment.html>
More information about the Python-list
mailing list