[pypy-svn] r73230 - pypy/trunk/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Wed Mar 31 22:41:15 CEST 2010
Author: arigo
Date: Wed Mar 31 22:41:14 2010
New Revision: 73230
Modified:
pypy/trunk/pypy/interpreter/gateway.py
Log:
Fix a stackless test in module/_rawffi, by catching the RPython-level
RuntimeError and raising an OperationError(w_RuntimeError) instead. It looks
like a good idea more generally.
Modified: pypy/trunk/pypy/interpreter/gateway.py
==============================================================================
--- pypy/trunk/pypy/interpreter/gateway.py (original)
+++ pypy/trunk/pypy/interpreter/gateway.py Wed Mar 31 22:41:14 2010
@@ -576,6 +576,8 @@
except rstackovf.StackOverflow, e:
rstackovf.check_stack_overflow()
raise space.prebuilt_recursion_error
+ except RuntimeError: # not on top of py.py
+ raise OperationError(space.w_RuntimeError, space.w_None)
# (verbose) performance hack below
More information about the Pypy-commit
mailing list