[issue5392] stack overflow after hitting recursion limit twice

Antoine Pitrou report at bugs.python.org
Sun Mar 1 17:44:24 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

The fact it fails only the second time is by design, although I'm not
sure the design is useful, and it's probably not documented anywhere.
The error message says it : "Cannot *recover* from stack overflow",
which means there was a first stack overflow, and Python thinks it has
failed recovering from it since a second stack overflow occurred
afterwards.

We could probably make the recovery detection smarter.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5392>
_______________________________________


More information about the Python-bugs-list mailing list