-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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-118609: Add proper error check for framelocalsproxy #118615
gh-118609: Add proper error check for framelocalsproxy #118615
Conversation
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.
Thanks! One style nit, you can fix it or leave it.
(Maybe @sobolevn can review too, in case I missed anything -- I realize I am not up to speed with all the details of writing this kind of code any more.)
Objects/frameobject.c
Outdated
Py_ReprLeave(self); | ||
|
||
Py_DECREF(dct); |
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'd swap these two lines, so that the Py_ReprEnter/Leave and the PyDict_New/Py_DECREF "brackets" properly nest. But this works too of course.
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.
Yeah that makes sense. DECREF dct
as soon as we are done with it and then leave repr. Fixed it.
I'll merge everything Monday morning (Pacific time) unless anyone says otherwise. |
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!
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.
Thank you!
frameobject.c
Objects/frameobject.c
lacks error-checking #118609