Author: Armin Rigo <[email protected]>
Branch:
Changeset: r88216:6eccb6e5fe92
Date: 2016-11-08 13:58 +0100
http://bitbucket.org/pypy/pypy/changeset/6eccb6e5fe92/
Log: comment
diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -544,6 +544,13 @@
except MemoryError:
return OperationError(space.w_MemoryError, space.w_None)
except rstackovf.StackOverflow as e:
+ # xxx twisted logic which happens to give the result that we
+ # want: when untranslated, a RuntimeError or its subclass
+ # NotImplementedError is caught here. Then
+ # check_stack_overflow() will re-raise it directly. We see
+ # the result as this exception propagates directly. But when
+ # translated, an RPython-level RuntimeError is turned into
+ # an app-level RuntimeError by the next case.
rstackovf.check_stack_overflow()
return oefmt(space.w_RuntimeError,
"maximum recursion depth exceeded")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit