[pypy-svn] r73428 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Tue Apr 6 01:34:04 CEST 2010


Author: xoraxax
Date: Tue Apr  6 01:34:03 2010
New Revision: 73428

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/floatobject.py
Log:
Implement float checkers.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/floatobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/floatobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/floatobject.py	Tue Apr  6 01:34:03 2010
@@ -1,7 +1,9 @@
 from pypy.rpython.lltypesystem import rffi, lltype
-from pypy.module.cpyext.api import cpython_api, PyObject
+from pypy.module.cpyext.api import cpython_api, PyObject, build_type_checkers
 from pypy.interpreter.error import OperationError
 
+PyFloat_Check, PyFloat_CheckExact = build_type_checkers("Float")
+
 @cpython_api([lltype.Float], PyObject)
 def PyFloat_FromDouble(space, value):
     return space.wrap(value)



More information about the Pypy-commit mailing list