]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] Validate the AST produced by the parser in debug mode (GH-21643) (GH-21646)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 27 Jul 2020 23:12:31 +0000 (00:12 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2020 23:12:31 +0000 (00:12 +0100)
commitbc2c0e9a574b5c039b4601a880920afa54dee543
tree97ffa6d19faa7c470629c261da6ef4fe6632f3e4
parente962e3f65a086d9d3b848483fd01215d96ecc5f9
[3.9] Validate the AST produced by the parser in debug mode (GH-21643) (GH-21646)

This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult..
(cherry picked from commit 1332226b32da44087a55e1d71990ee6899dfd28a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Parser/pegen/pegen.c