Author vstinner
Recipients gvanrossum, lys.nikolaou, pablogsal, vstinner
Date 2020-10-30.22:05:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604095531.24.0.280205642021.issue42214@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2020-10-30 22:05:31vstinnersetrecipients: + vstinner, gvanrossum, lys.nikolaou, pablogsal
2020-10-30 22:05:31vstinnersetmessageid: <1604095531.24.0.280205642021.issue42214@roundup.psfhosted.org>
2020-10-30 22:05:31vstinnerlinkissue42214 messages
2020-10-30 22:05:31vstinnercreate