[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] float vs double issue not clear
From: "Giovanni Bajo" <rasky () develer ! com>
Date: 2005-03-30 12:31:11
Message-ID: 036e01c53524$5b182150$bf03030a () trilan
[Download RAW message or body]
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
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic