[pypy-svn] r74395 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Thu May 6 01:34:55 CEST 2010
Author: afa
Date: Thu May 6 01:34:53 2010
New Revision: 74395
Modified:
pypy/trunk/pypy/module/cpyext/api.py
Log:
Another translation fix
maybe
Modified: pypy/trunk/pypy/module/cpyext/api.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/api.py (original)
+++ pypy/trunk/pypy/module/cpyext/api.py Thu May 6 01:34:53 2010
@@ -448,6 +448,8 @@
retval = error_value
elif callable.api_func.restype is PyObject:
+ if result is None:
+ retval = lltype.nullptr(PyObject.TO)
if isinstance(result, BorrowedPair):
retval = result.get_ref(space)
elif not rffi._isllptr(result):
More information about the Pypy-commit
mailing list