]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135075: Make PyObject_SetAttr() fail with NULL value and exception (#136180)
authorVictor Stinner <vstinner@python.org>
Thu, 3 Jul 2025 12:51:44 +0000 (14:51 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 12:51:44 +0000 (14:51 +0200)
commitda79ac9d26860db62500762c95b7ae534638f9a7
treef75f1ec92602e9da32a3934e7e8beb25db7f167e
parentb2e498ac26ba4720fa8a6a466aa8416ab69754d7
gh-135075: Make PyObject_SetAttr() fail with NULL value and exception (#136180)

Make PyObject_SetAttr() and PyObject_SetAttrString() fail if called
with NULL value and an exception set.
Doc/c-api/object.rst
Lib/test/test_capi/test_abstract.py
Misc/NEWS.d/next/C_API/2025-07-01-16-22-39.gh-issue-135075.angu3J.rst [new file with mode: 0644]
Modules/_testcapi/abstract.c
Objects/object.c