[pypy-commit] pypy default: Fix the initial value returned by sys.getrecursionlimit(). Used to be

arigo pypy.commits at gmail.com
Mon Sep 12 11:03:26 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r87048:0165d335e184
Date: 2016-09-12 17:02 +0200
http://bitbucket.org/pypy/pypy/changeset/0165d335e184/

Log:	Fix the initial value returned by sys.getrecursionlimit(). Used to
	be 100, even though it was internally configured like it is after
	sys.setrecursionlimit(1000).

diff --git a/pypy/module/sys/__init__.py b/pypy/module/sys/__init__.py
--- a/pypy/module/sys/__init__.py
+++ b/pypy/module/sys/__init__.py
@@ -15,7 +15,7 @@
         if space.config.translating:
             del self.__class__.interpleveldefs['pypy_getudir']
         super(Module, self).__init__(space, w_name)
-        self.recursionlimit = 100
+        self.recursionlimit = 1000
         self.w_default_encoder = None
         self.defaultencoding = "ascii"
         self.filesystemencoding = None


More information about the pypy-commit mailing list