-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-135075: Make PyObject_SetAttr() fail with NULL value and exception #136180
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
…eption Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
ZeroIntensity
left a comment
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.
Generally looks good to me.
ZeroIntensity
left a comment
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, LGTM.
serhiy-storchaka
left a comment
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 think that Modules/_testcapi/abstract.c is better place than Modules/_testcapi/object.c.
I moved the C code. |
serhiy-storchaka
left a comment
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, although I think that the documentation could be improved.
|
Merged, thanks for reviews.
I'm not good at writing documentation. Since the PR got multiple approvals, I merged my PR. |
…eption (python#136180) Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
…eption (python#136180) Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
…eption (python#136180) Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
…eption (python#136180) Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
…eption (python#136180) Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called with NULL value and an exception set.
📚 Documentation preview 📚: https://cpython-previews--136180.org.readthedocs.build/