[PyQt] QPoint - Hash values

Filip Gruszczyński gruszczy at gmail.com
Mon Oct 6 21:12:40 BST 2008


Recently I have noticed, that:

x = QPoint(1, 1)
y = QPoint(1, 1)

and hash(x) == hash(y) is not true, though x == y. Why is it so?
Because of that points cannot be used effectively in set or dict. Is
there any particular reason for that?

-- 
Filip Gruszczyński



More information about the PyQt mailing list