[issue44143] The parse crashes when raising tokenizer errors when an existing exception is set
Pablo Galindo Salgado
report at bugs.python.org
Sat May 15 12:30:11 EDT 2021
New submission from Pablo Galindo Salgado <pablogsal at gmail.com>:
The parser currently crashes when raising exceptions when the error indicator set. Reproducer:
import ast
source = """\
[interesting
foo()
"""
print(repr(source))
compile(source, "", "exec")
We need to make sure to clean any existing exception before we raise or own.
----------
messages: 393716
nosy: BTaskaya, pablogsal
priority: normal
severity: normal
status: open
title: The parse crashes when raising tokenizer errors when an existing exception is set
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44143>
_______________________________________
More information about the Python-bugs-list
mailing list