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

afa at codespeak.net afa at codespeak.net
Thu May 6 02:38:06 CEST 2010


Author: afa
Date: Thu May  6 02:38:04 2010
New Revision: 74400

Modified:
   pypy/trunk/pypy/module/cpyext/api.py
Log:
Last attempt


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 02:38:04 2010
@@ -451,6 +451,7 @@
                 if isinstance(result, BorrowedPair):
                     retval = result.get_ref(space)
                 elif not rffi._isllptr(result):
+                    assert not isinstance(result, BorrowedPair)
                     retval = make_ref(space, result)
                 else:
                     retval = result



More information about the Pypy-commit mailing list