-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-113317: Add ParseArgsCodeGen class #117707
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
Conversation
vstinner
commented
Apr 10, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Argument Clinic: split out global stateless helpers and constants from clinic.py #113317
This PR is based on PR gh-117626. |
781133c
to
b17f552
Compare
PR rebased on top of merged #117626. |
The previous PR used the |
This is nice! Should we consider adding this as a separate module? Or would |
CLanguage uses ParseArgsCodeGen which uses CLanguage... There is an inter-dependency. It's more convenient to have both classes in the same file. |
Yes, there are inter-dependencies everywhere :( |
I updated this PR to rename Codegen to CodeGen. |
I broke the inter-dependency between CLanguage and ParseArgsCodeGen, and I moved declare_parser() and ParseArgsCodeGen to a new |
Nice, so now we can make the parser templates globals of the |
Done. |