Details
Description
I have a QGraphicsObject subclass with __getitem__ implemented. Calling parentItem() on instances of this class leads to an infinite loop calling __getitem__. Example:
from PySide import QtGui, QtCore app = QtGui.QApplication([]) class O(QtGui.QGraphicsObject): def __getitem__(self, *args): print "getitem called:", args o1 = O() o2 = O() o2.setParentItem(o1) print o2.parentItem()
Is there any way to work around this?
Attachments
For Gerrit Dashboard: PYSIDE-441 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
216556,6 | Prevent infinite loop due to bad __getitem__ impl | 5.9 | pyside/pyside-setup | Status: MERGED | +2 | 0 |