]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Aug 2023 12:22:13 +0000 (15:22 +0300)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2023 12:22:13 +0000 (12:22 +0000)
commit92a578409b70b5b9dabc9e55d4d13dd8239fe2f5
tree9a6076424b0d1fcea9d4f5abe104fcaaa551fee8
parent0673d4c762d6dc4c742e71e76cee66181c457f24
[3.11] gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918) (GH-108135)

Such C API functions as PyErr_SetString(), PyErr_Format(),
PyErr_SetFromErrnoWithFilename() and many others no longer crash or
ignore errors if it failed to format the error message or decode the
filename. Instead, they keep a corresponding error.
(cherry picked from commit 633ea217a85f6b6ba5bdbc73094254d5811b3485)
Misc/NEWS.d/next/C API/2023-08-13-12-33-00.gh-issue-107915.jQ0wOi.rst [new file with mode: 0644]
Python/errors.c