Author: Stefan H. Muller <[email protected]>
Branch: pypy-pyarray
Changeset: r66346:56fa5d73e5ec
Date: 2013-08-10 00:33 +0200
http://bitbucket.org/pypy/pypy/changeset/56fa5d73e5ec/
Log: Implement PyNumber_Float() as space.float(w_obj).
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.call_function(space.w_float, w_obj)
+ return space.float(w_obj)
@cpython_api([PyObject, rffi.CCHARPP], PyObject)
def PyFloat_FromString(space, w_obj, _):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit