Author: Matti Picus <matti.pi...@gmail.com>
Branch: pypy-pyarray
Changeset: r66368:0bf8764d2f62
Date: 2013-08-27 21:18 +0300
http://bitbucket.org/pypy/pypy/changeset/0bf8764d2f62/

Log:    revert 56fa5d73e5ec

diff --git a/pypy/module/cpyext/floatobject.py 
b/pypy/module/cpyext/floatobject.py
--- a/pypy/module/cpyext/floatobject.py
+++ b/pypy/module/cpyext/floatobject.py
@@ -25,7 +25,7 @@
     """
     Returns the o converted to a float object on success, or NULL on failure.
     This is the equivalent of the Python expression float(o)."""
-    return space.float(w_obj)
+    return space.call_function(space.w_float, w_obj)
 
 @cpython_api([PyObject, rffi.CCHARPP], PyObject)
 def PyFloat_FromString(space, w_obj, _):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to