-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-121404: split compiler's push/pop_inlined_comprehension_state into codegen and compiler parts #123021
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
…e into codegen and compiler parts
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 7c5ae2a 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
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, thanks!
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.
Nothing to add, just a couple of comments.
push_inlined_comprehension_state(struct compiler *c, location loc, | ||
PySTEntryObject *entry, | ||
inlined_comprehension_state *state) | ||
compiler_tweak_inlined_comprehension_scopes(struct compiler *c, location loc, |
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'm not sure what this does, maybe change "tweak" to something more informative?
Can we also add a comment as we why we need to "tweak" the "state", rather than creating a new symbol table entry for the comprehension?
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 have this issue to look into this area - let's discuss there. #122985
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.
(Sorry, I already clicked auto-merge before your comment came through).
…e into codegen and compiler parts (python#123021)
This is preparation for the division of the compiler into codegen functions and compiler-state manipulation functions.