[PyQt] Python property in QObject masks AttributeErrors
Benjamin Kloster
benjamin.kloster at videlco.eu
Mon Apr 18 13:07:13 BST 2011
Hi everyone,
twice now I've stumbled over a subtle bug when subclassing QObject. When
the getter of a python property raises an AttributeError for any
attribute or object, PyQt seems to reraise this error improperly,
clearing the traceback and often reporting a false object type and
attribute name. See the attached script for a minimal example.
Regards,
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_property_bug.py
Type: text/x-python
Size: 338 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110418/a51e00b1/attachment.py>
More information about the PyQt
mailing list