-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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-100719: Remove redundant gi_code
field from generator object.
#100749
Conversation
markshannon
commented
Jan 4, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Code objects, function objects and generator object contain quite a lot of redundant information #100719
@@ -1962,44 +1962,6 @@ initialize_locals(PyThreadState *tstate, PyFunctionObject *func, | |||
return -1; | |||
} | |||
|
|||
/* Consumes references to func, locals and all the args */ |
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.
Why was this moved downwards?
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.
There was a small change, it now calls clear_thread_frame()
rather than _PyEvalFrameClearAndPop()
, so now needs to come after clear_thread_frame
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.
mostly LGTM
There's one minor comment, but I'll leave the resolution up to you.
I've converted this to a draft because I want to make the following changes first.
|
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.
LGTM
I'm removing the |
…3.12a6 and replaced with a C-API function. See python/cpython#100749
…3.12a6 and replaced with a C-API function. See python/cpython#100749