[pypy-svn] r72447 - pypy/trunk/pypy/module/cpyext
xoraxax at codespeak.net
xoraxax at codespeak.net
Sat Mar 20 14:35:00 CET 2010
Author: xoraxax
Date: Sat Mar 20 14:34:58 2010
New Revision: 72447
Modified:
pypy/trunk/pypy/module/cpyext/api.py
Log:
Do not use zip here.
Modified: pypy/trunk/pypy/module/cpyext/api.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/api.py (original)
+++ pypy/trunk/pypy/module/cpyext/api.py Sat Mar 20 14:34:58 2010
@@ -171,7 +171,8 @@
def wrapper(*args):
boxed_args = []
# XXX use unrolling_iterable here
- for typ, arg in zip(callable.api_func.argtypes, args):
+ for i, typ in enumerate(callable.api_func.argtypes):
+ arg = args[i]
if typ is PyObject:
arg = from_ref(space, arg)
boxed_args.append(arg)
More information about the Pypy-commit
mailing list