diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-08-19 11:51:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-19 11:51:03 (GMT) |
commit | 633ea217a85f6b6ba5bdbc73094254d5811b3485 (patch) | |
tree | c33fba2ad466d260ebdce2e743ca6df9e28a3152 /Misc/NEWS.d/next/C API | |
parent | 79db9d9a0e8f51ad4ea5caae31d7ae4b29985271 (diff) | |
download | cpython-633ea217a85f6b6ba5bdbc73094254d5811b3485.zip cpython-633ea217a85f6b6ba5bdbc73094254d5811b3485.tar.gz cpython-633ea217a85f6b6ba5bdbc73094254d5811b3485.tar.bz2 |
gh-107915: Handle errors in C API functions PyErr_Set*() and PyErr_Format() (GH-107918)
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.
Diffstat (limited to 'Misc/NEWS.d/next/C API')
-rw-r--r-- | Misc/NEWS.d/next/C API/2023-08-13-12-33-00.gh-issue-107915.jQ0wOi.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-08-13-12-33-00.gh-issue-107915.jQ0wOi.rst b/Misc/NEWS.d/next/C API/2023-08-13-12-33-00.gh-issue-107915.jQ0wOi.rst new file mode 100644 index 0000000..58ee3f1 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2023-08-13-12-33-00.gh-issue-107915.jQ0wOi.rst @@ -0,0 +1,4 @@ +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. |