-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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.
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.
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.
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. |
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. |
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/