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?