[pypy-svn] r77359 - pypy/branch/fast-forward/pypy/objspace/std

afa at codespeak.net afa at codespeak.net
Sat Sep 25 00:01:40 CEST 2010


Author: afa
Date: Sat Sep 25 00:01:39 2010
New Revision: 77359

Modified:
   pypy/branch/fast-forward/pypy/objspace/std/floattype.py
Log:
one again: float('nan') is not RPython


Modified: pypy/branch/fast-forward/pypy/objspace/std/floattype.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/floattype.py	(original)
+++ pypy/branch/fast-forward/pypy/objspace/std/floattype.py	Sat Sep 25 00:01:39 2010
@@ -106,7 +106,7 @@
         i += 1
         if length - i >= 2 and s[i:i + 2].lower() == "an":
             i += 2
-            value = float("nan")
+            value = rarithmetic.NAN
     else:
         if (s[i] == "0" and length - i > 1 and
             (s[i + 1] == "x" or s[i + 1] == "X")):



More information about the Pypy-commit mailing list