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

afa at codespeak.net afa at codespeak.net
Thu May 6 01:57:22 CEST 2010


Author: afa
Date: Thu May  6 01:57:21 2010
New Revision: 74397

Modified:
   pypy/trunk/pypy/module/cpyext/api.py
Log:
Another attempt to fix translation.


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:57:21 2010
@@ -453,6 +453,7 @@
                 elif isinstance(result, BorrowedPair):
                     retval = result.get_ref(space)
                 elif not rffi._isllptr(result):
+                    assert isinstance(retval, W_Root)
                     retval = make_ref(space, result)
                 else:
                     retval = result



More information about the Pypy-commit mailing list