[pypy-svn] r16481 - in pypy/dist/pypy: interpreter/stablecompiler lib/_stablecompiler

ludal at codespeak.net ludal at codespeak.net
Thu Aug 25 14:15:59 CEST 2005


Author: ludal
Date: Thu Aug 25 14:15:58 2005
New Revision: 16481

Modified:
   pypy/dist/pypy/interpreter/stablecompiler/transformer.py
   pypy/dist/pypy/lib/_stablecompiler/transformer.py
Log:
 - make sure recursion depth is enough for us


Modified: pypy/dist/pypy/interpreter/stablecompiler/transformer.py
==============================================================================
--- pypy/dist/pypy/interpreter/stablecompiler/transformer.py	(original)
+++ pypy/dist/pypy/interpreter/stablecompiler/transformer.py	Thu Aug 25 14:15:58 2005
@@ -33,6 +33,11 @@
 import pypy.interpreter.pyparser.pytoken as token
 import sys
 
+# transforming is requiring a lot of recursion depth so make sure we have enough
+if sys.getrecursionlimit()<5000:
+    sys.setrecursionlimit(5000)
+
+
 class WalkerError(StandardError):
     pass
 

Modified: pypy/dist/pypy/lib/_stablecompiler/transformer.py
==============================================================================
--- pypy/dist/pypy/lib/_stablecompiler/transformer.py	(original)
+++ pypy/dist/pypy/lib/_stablecompiler/transformer.py	Thu Aug 25 14:15:58 2005
@@ -31,6 +31,10 @@
 import token
 import sys
 
+# transforming is requiring a lot of recursion depth so make sure we have enough
+if sys.getrecursionlimit()<5000:
+    sys.setrecursionlimit(5000)
+
 class WalkerError(StandardError):
     pass
 



More information about the Pypy-commit mailing list