]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-106033: Get rid of new occurrences of PyDict_GetItem and Py… (#106041)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 24 Jun 2023 23:36:34 +0000 (02:36 +0300)
committerGitHub <noreply@github.com>
Sat, 24 Jun 2023 23:36:34 +0000 (16:36 -0700)
commit9cd366462b8c45c5cd9e99b76047b517cece939e
tree94f1544c6b39638c4b0d44e9dcba2be8f486aedd
parent746c0f3d8fddb2a88028707b18930243c86ce437
[3.12] gh-106033: Get rid of new occurrences of PyDict_GetItem and Py… (#106041)

[3.12] gh-106033: Get rid of new occurrences of PyDict_GetItem and PyObject_HasAttr (GH-106034)

These functions are broken by design because they discard any exceptions raised
inside, including MemoryError and KeyboardInterrupt.  They should not be
used in new code.
(cherry picked from commit 1d33d5378058671bfabb6f4d4b5bfd4726973ff9)
Modules/_hashopenssl.c
Modules/_testcapi/code.c
Objects/exceptions.c
Objects/typeobject.c
Python/pythonrun.c