[PyKDE] float vs double issue not clear

Giovanni Bajo rasky at develer.com
Wed Mar 30 13:31:11 BST 2005


Hello,

>>> from qt import *
>>> QPoint(0, 2317597757.17)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: argument 2 of QPoint() has an invalid type

I believe the problem is that the number overflows C++ float type, while it
fits Python float type (which is a C++ double type). The issue I am
reporting is that the error message could be improved by saying something
more specific.
-- 
Giovanni Bajo




More information about the PyQt mailing list