Message2816

Author pjenvey
Recipients
Date 2007-09-22.01:50:43
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Is the comparison of x to Double.NEGATIVE_INFINITY a typo? Shouldn't that be compared against z?:

                 z = Double.valueOf(string.substring(s, end)).doubleValue();
-                if (z == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) {
-                       throw Py.ValueError("double() out of range:" + string);
+                if (z == Double.NEGATIVE_INFINITY || z == Double.POSITIVE_INFINITY) {
+                       throw Py.ValueError("float() out of range: " + string);
                 }
History
Date User Action Args
2008-02-20 17:18:46adminlinkissue1779428 messages
2008-02-20 17:18:46admincreate