]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106572: Convert PyObject_DelAttr() to a function (#106611)
authorVictor Stinner <vstinner@python.org>
Tue, 11 Jul 2023 09:38:22 +0000 (11:38 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jul 2023 09:38:22 +0000 (11:38 +0200)
commit1f2921b72c369b19c2e32aaedb9f8c63e0cb8b48
tree36a45c5f49093ad3a7947593f2d35901c021f3cb
parente6379f72cbc60f6b3c5676f9e225d4f145d5693f
gh-106572: Convert PyObject_DelAttr() to a function (#106611)

* Convert PyObject_DelAttr() and PyObject_DelAttrString() macros to
  functions.
* Add PyObject_DelAttr() and PyObject_DelAttrString() functions to
  the stable ABI.
* Replace PyObject_SetAttr(obj, name, NULL) with
  PyObject_DelAttr(obj, name).
12 files changed:
Doc/data/stable_abi.dat
Include/abstract.h
Include/object.h
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2023-07-11-01-07-39.gh-issue-106572.y1b35X.rst [new file with mode: 0644]
Misc/stable_abi.toml
Objects/object.c
PC/python3dll.c
Python/bltinmodule.c
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h