]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40528: Implement a metadata system for ASDL Generator (GH-20193)
authorBatuhan Taskaya <batuhan@python.org>
Tue, 22 Jun 2021 16:29:42 +0000 (19:29 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Jun 2021 16:29:42 +0000 (19:29 +0300)
commit35ad425866d591c33d7f2be2b9da8bce2bff9523
tree69135e82ed192c9523cb6424d9cd720cda725b77
parentd1ae57027fc39ff60dcfc1b63881400e5ca3ce56
bpo-40528: Implement a metadata system for ASDL Generator (GH-20193)

ASDL Generator was lack of proper annotation related to generated
module. This patch implements a MetadataVisitor that produces a
metadata object to pass to other visitors that are visiting that
same module. For the inital patch, it dynamically retrieves int
sequences (like cmpop), that was previously hardcoded. It offers
an interface that is easy to extend.
Parser/asdl_c.py