]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42000: Cleanup the AST related C-code (GH-22641)
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>
Sat, 10 Oct 2020 17:14:59 +0000 (20:14 +0300)
committerGitHub <noreply@github.com>
Sat, 10 Oct 2020 17:14:59 +0000 (10:14 -0700)
commit02a1603f918b9862e164e4fd050c505b16bc9f57
tree89edf08ba59a6f30fd436375b7c24ce5402b71d0
parent637a09b0d6e3ad4e34e0b5e0fc82f5afeae6f74b
bpo-42000: Cleanup the AST related C-code (GH-22641)

- Use the proper asdl sequence when creating empty arguments
- Remove reduntant casts (thanks to new typed asdl_sequences)
- Remove MarshalPrototypeVisitor and some utilities from asdl generator
- Fix the header of `Python/ast.c` (kept from pgen times)

Automerge-Triggered-By: @pablogsal
Parser/asdl_c.py
Parser/pegen.c
Python/ast.c