Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-40528: Implement a metadata system for ASDL Generator #20193

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

isidentical
Copy link
Member

@isidentical isidentical commented May 18, 2020

ASDL Generator was lack of proper annotation related to the 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 initial patch, it dynamically retrieves int
sequences (like cmpop), that was previously hardcoded. It offers
an interface that is easy to extend.

https://bugs.python.org/issue40528

@pablogsal
Copy link
Member

Re-triggering CI

@isidentical
Copy link
Member Author

Thanks @pablogsal, it looks like everything is passing now.

@pablogsal
Copy link
Member

@isidentical Can you rebase?

@isidentical
Copy link
Member Author

@isidentical Can you rebase?

Sure, rebased!

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.
@isidentical isidentical reopened this Jun 22, 2021
@isidentical isidentical merged commit 35ad425 into python:main Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants