New submission from Pablo Galindo Salgado <pablog...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44143>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to