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

xoraxax at codespeak.net xoraxax at codespeak.net
Sun Mar 28 18:05:07 CEST 2010


Author: xoraxax
Date: Sun Mar 28 18:05:05 2010
New Revision: 73036

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
Add specialization.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py	Sun Mar 28 18:05:05 2010
@@ -20,6 +20,7 @@
 from pypy.objspace.std.stringobject import W_StringObject
 from pypy.rlib.entrypoint import entrypoint
 from pypy.rlib.unroll import unrolling_iterable
+from pypy.rlib.objectmodel import specialize
 # CPython 2.4 compatibility
 from py.builtin import BaseException
 
@@ -605,6 +606,7 @@
     state.check_and_raise_exception()
 
 def make_generic_cpy_call_func(decref_args):
+    @specialize.argtype(2)
     def generic_cpy_call(space, func, *args):
         from pypy.module.cpyext.macros import Py_DECREF
         from pypy.module.cpyext.pyerrors import PyErr_Occurred



More information about the Pypy-commit mailing list