[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

Serhiy Storchaka report at bugs.python.org
Sun Dec 24 14:41:34 EST 2017


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

The main problem was with the frame.f_lineno setter. I have finally solved it in PR 5006. It solves also the regression in the with statement mentioned in msg307577 (by just restoring the original SETUP_WITH), and some other minor issues which I forgot.

Tests for the frame.f_lineno setter are provided in issue32416. I want to backport these changes and add new tests in PR 5006 (which allows to catch more illegal jumps than the current code), thus a separate issue. PR 2827 and PR 4682 crash with these tests.

Additionally PR 5006 may fix several issues with stack size calculation. I'll add tests later if there are reproducers.

----------

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


More information about the Python-bugs-list mailing list