New submission from Batuhan Taskaya <isidenti...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42206> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com