]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108511: Add C API functions which do not silently ignore errors (GH-109025)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 17 Sep 2023 11:23:31 +0000 (14:23 +0300)
committerGitHub <noreply@github.com>
Sun, 17 Sep 2023 11:23:31 +0000 (14:23 +0300)
commitadd16f1a5e4013f97d33cc677dc008e8199f5b11
tree2c187adbae2766f942e35780950a526dfe84ff48
parente57ecf6bbc59f999d27b125ea51b042c24a07bd9
gh-108511: Add C API functions which do not silently ignore errors (GH-109025)

Add the following functions:

* PyObject_HasAttrWithError()
* PyObject_HasAttrStringWithError()
* PyMapping_HasKeyWithError()
* PyMapping_HasKeyStringWithError()
28 files changed:
Doc/c-api/mapping.rst
Doc/c-api/object.rst
Doc/data/stable_abi.dat
Doc/whatsnew/3.13.rst
Include/abstract.h
Include/object.h
Lib/test/test_capi/test_abstract.py
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2023-09-01-16-28-09.gh-issue-108511.gg-QDG.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_ctypes/stgdict.c
Modules/_elementtree.c
Modules/_io/iobase.c
Modules/_io/textio.c
Modules/_pickle.c
Modules/_testcapi/abstract.c
Modules/_xxinterpchannelsmodule.c
Modules/_xxsubinterpretersmodule.c
Objects/abstract.c
Objects/dictobject.c
Objects/genericaliasobject.c
Objects/object.c
Objects/typeobject.c
Objects/unionobject.c
PC/python3dll.c
Python/errors.c
Python/import.c
Python/suggestions.c