Commits

Maciej Fijalkowski committed 8d3fa24

don't call sys.setrecursionlimit on pypy

  • Participants
  • Parent commits f39f935
  • Branches remove-sys-recursionlimit

Comments (0)

Files changed (1)

File pypy/translator/goal/app_main.py

                      cmd=None,
                      **ignored):
     # with PyPy in top of CPython we can only have around 100 
-    # but we need more in the translated PyPy for the compiler package 
-    sys.setrecursionlimit(5000)
+    # but we need more in the translated PyPy for the compiler package
+    if '__pypy__' not in sys.builtin_module_names:
+        sys.setrecursionlimit(5000)
 
     if unbuffered:
         set_unbuffered_io()