[pypy-svn] r73671 - pypy/branch/cpython-extension/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Mon Apr 12 16:38:22 CEST 2010
Author: afa
Date: Mon Apr 12 16:38:21 2010
New Revision: 73671
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
Fix translation
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py Mon Apr 12 16:38:21 2010
@@ -257,9 +257,12 @@
def setter(self, space, w_self, w_value):
check_descr(space, w_self, self.pto)
- return generic_cpy_call(
+ res = generic_cpy_call(
space, self.getset.c_set, w_self, w_value,
self.getset.c_closure)
+ if rffi.cast(lltype.Signed, res) < 0:
+ state = space.fromcache(State)
+ state.check_and_raise_exception()
def member_getter(self, space, w_self):
check_descr(space, w_self, self.pto)
More information about the Pypy-commit
mailing list