-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
base: main
Are you sure you want to change the base?
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. |
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/