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

benjamin at codespeak.net benjamin at codespeak.net
Tue Jun 8 18:24:33 CEST 2010


Author: benjamin
Date: Tue Jun  8 18:24:31 2010
New Revision: 75208

Modified:
   pypy/branch/fast-forward/pypy/objspace/std/newformat.py
Log:
a few more float related lines

Modified: pypy/branch/fast-forward/pypy/objspace/std/newformat.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/newformat.py	(original)
+++ pypy/branch/fast-forward/pypy/objspace/std/newformat.py	Tue Jun  8 18:24:31 2010
@@ -730,6 +730,12 @@
         tp = self._type
         if tp == "\0":
             tp = "g"
+        value = space.float_w(w_float)
+        if tp == "%":
+            tp = "f"
+            value *= 100
+        if self._precision = -1:
+            self._precision = 6
 
     def format_float(self, w_float):
         space = self.space



More information about the Pypy-commit mailing list