[issue37830] continue and break in finally with return in try results with segfault

Serhiy Storchaka report at bugs.python.org
Sat Aug 17 12:35:48 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

PR 15320 fixes a regression by changing the compiler. None is now always pushed on the stack before entering a try...finally block. The "return" statement with a non-constant value replaces it, so the stack is balanced.

----------

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


More information about the Python-bugs-list mailing list