New submission from STINNER Victor <vstin...@python.org>:
When Python is built in debug mode, it fails with an assertion error on the following code: --- def func1(): if a != b: raise ValueError def func2(): try return 1 finally: pass --- Try attached pgen_bug.py: $ ./python pgen_bug.py python: Parser/pegen.c:68: _PyPegen_check_barry_as_flufl: Assertion `t->type == NOTEQUAL' failed. Abandon (core dumped) ---------- components: Interpreter Core files: pgen_bug.py messages: 380002 nosy: gvanrossum, lys.nikolaou, pablogsal, vstinner priority: normal severity: normal status: open title: Parser/pegen.c:68: _PyPegen_check_barry_as_flufl: Assertion `t->type == NOTEQUAL' failed versions: Python 3.10 Added file: https://bugs.python.org/file49555/pgen_bug.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42214> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com