[pypy-svn] r74561 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Wed May 19 09:49:21 CEST 2010

Author: afa
Date: Wed May 19 09:49:18 2010
New Revision: 74561

PyDict_Next is a stub, but gives it at least the correct signature

Modified: pypy/trunk/pypy/module/cpyext/dictobject.py
--- pypy/trunk/pypy/module/cpyext/dictobject.py	(original)
+++ pypy/trunk/pypy/module/cpyext/dictobject.py	Wed May 19 09:49:18 2010
@@ -1,7 +1,8 @@
 from pypy.rpython.lltypesystem import rffi, lltype
-from pypy.module.cpyext.api import cpython_api, CANNOT_FAIL, build_type_checkers,\
-        Py_ssize_t, PyObjectP, CONST_STRING
-from pypy.module.cpyext.pyobject import PyObject, borrow_from
+from pypy.module.cpyext.api import (
+    cpython_api, CANNOT_FAIL, build_type_checkers, Py_ssize_t,
+    Py_ssize_tP, CONST_STRING)
+from pypy.module.cpyext.pyobject import PyObject, PyObjectP, borrow_from
 from pypy.module.cpyext.pyerrors import PyErr_BadInternalCall
 from pypy.interpreter.error import OperationError
@@ -102,7 +103,7 @@
     dictionary, as in the dictionary method dict.items()."""
     return space.call_method(w_obj, "items")
- at cpython_api([PyObject, Py_ssize_t, PyObjectP, PyObjectP], rffi.INT_real, error=CANNOT_FAIL)
+ at cpython_api([PyObject, Py_ssize_tP, PyObjectP, PyObjectP], rffi.INT_real, error=CANNOT_FAIL)
 def PyDict_Next(space, w_obj, ppos, pkey, pvalue):
     """Iterate over all key-value pairs in the dictionary p.  The
     Py_ssize_t referred to by ppos must be initialized to 0

More information about the Pypy-commit mailing list