-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
gh-121404: more compiler_* -> codegen_*, class_body and comprehensions #123262
Conversation
iritkatriel
commented
Aug 23, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: split compiler.c into compiler and codegen #121404
Co-authored-by: Bénédikt Tran <[email protected]>
@@ -96,6 +96,7 @@ static PySTEntryObject *compiler_symtable_entry(struct compiler *c); | |||
#define IS_INTERACTIVE(C) compiler_is_interactive(C) | |||
#define IS_NESTED_SCOPE(C) compiler_is_nested_scope(C) | |||
#define SCOPE_TYPE(C) compiler_scope_type(C) | |||
#define QUALNAME(C) compiler_qualname(C) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see why you are adding this macro; it fits the pattern.
But OOI, why do we have all these macros in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why originally, but I think it will be handy for customizing the compiler after I finish the split. We'll see.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good