[issue42206] Pegen: Raise errors occurred by the AST validator
Batuhan Taskaya
report at bugs.python.org
Fri Oct 30 06:09:19 EDT 2020
New submission from Batuhan Taskaya <isidentical at gmail.com>:
When working on the AST validator, it is unclear that which of the changes caused parser to fail on valid input. I propose to propagate the error and raise it.
Current:
$ ./python t.py
python: Parser/pegen.c:1146: _PyPegen_run_parser: Assertion `PyAST_Validate(res)' failed.
Proposed:
$ ./python t.py
ValueError: Test AST error raised by the Python/ast.c
----------
components: Interpreter Core
messages: 379941
nosy: BTaskaya, gvanrossum, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: Pegen: Raise errors occurred by the AST validator
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42206>
_______________________________________
More information about the Python-bugs-list
mailing list