[issue35354] Generator functions stack overflow

Mark Shannon report at bugs.python.org
Tue May 7 10:47:40 EDT 2019


Mark Shannon <mark at hotpy.org> added the comment:

I'm closing this as a duplicate of https://bugs.python.org/issue6028

Making a recursive call in an except block cannot be handled sensibly by the interpreter. 

On exceeding the stack depth, the interpreter will raise a RecursionError.
Catching a RecursionError and then making a call will blow the stack, leaving the interpreter with no choice; it has to abort.

----------
nosy: +Mark.Shannon
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35354>
_______________________________________


More information about the Python-bugs-list mailing list