[pypy-svn] r74320 - pypy/trunk/pypy/interpreter

benjamin at codespeak.net benjamin at codespeak.net
Sun May 2 03:41:51 CEST 2010


Author: benjamin
Date: Sun May  2 03:41:49 2010
New Revision: 74320

Modified:
   pypy/trunk/pypy/interpreter/executioncontext.py
Log:
use prebuilt recursion error

Modified: pypy/trunk/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/trunk/pypy/interpreter/executioncontext.py	(original)
+++ pypy/trunk/pypy/interpreter/executioncontext.py	Sun May  2 03:41:49 2010
@@ -50,8 +50,7 @@
 
     def enter(self, frame):
         if self.framestackdepth > self.space.sys.recursionlimit:
-            raise OperationError(self.space.w_RuntimeError,
-                                 self.space.wrap("maximum recursion depth exceeded"))
+            raise self.space.prebuilt_recursion_error
         self.framestackdepth += 1
         frame.f_backref = self.topframeref
         self.topframeref = jit.virtual_ref(frame)



More information about the Pypy-commit mailing list