Message2816
 
            
            
            
 
   
   
 
 
  
      
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);
                 } | 
   
  
 
|
 
| Date | 
User | 
Action | 
Args | 
 
| 2008-02-20 17:18:46 | admin | link | issue1779428 messages |  
| 2008-02-20 17:18:46 | admin | create |  |  
 
 
 |