[PyQt] Variant compare

Alexandr N Zamaraev tonal at promsoft.ru
Fri Jun 5 11:14:52 BST 2009


Snippet:
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> from PyQt4 import QtCore
 >>> QtCore.QVariant(1) == QtCore.QVariant(1)
True
 >>> QtCore.QVariant(int) == QtCore.QVariant(int)
False
 >>> QtCore.QVariant([1, 2]) == QtCore.QVariant([1, 2])
False
 >>>
Why?

sip-4.8-snapshot-20090603.zip
PyQt-win-gpl-4.5-snapshot-20090601.zip


More information about the PyQt mailing list