[pypy-issue] [issue715] maximum recursion depth exceeded

Armin Rigo tracker at bugs.pypy.org
Fri May 27 15:44:45 CEST 2011


Armin Rigo <armin.rigo at gmail.com> added the comment:

Fixed like this:

"""setrecursionlimit() sets the maximum number of nested calls that
can occur before a RuntimeError is raised.  On PyPy the limit is
approximative and checked at a lower level.  The default 1000
reserves 768KB of stack space, which should suffice (on Linux,
depending on the compiler settings) for ~1400 calls.  Setting the
value to N reserves N/1000 times 768KB of stack space.
"""

----------
status: chatting -> resolved

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue715>
________________________________________


More information about the pypy-issue mailing list