[pypy-commit] pypy default: comment

arigo pypy.commits at gmail.com
Tue Nov 8 07:58:56 EST 2016


Author: Armin Rigo <arigo at tunes.org>
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")


More information about the pypy-commit mailing list