6 Oct 22:11
QPoint - Hash values
From: Filip Gruszczyński <gruszczy <at> gmail.com>
Subject: QPoint - Hash values
Newsgroups: gmane.comp.python.pyqt-pykde
Date: 2008-10-06 20:12:40 GMT
Subject: QPoint - Hash values
Newsgroups: gmane.comp.python.pyqt-pykde
Date: 2008-10-06 20:12:40 GMT
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
RSS Feed