diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-11-07 13:58:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 13:58:04 (GMT) |
commit | f55cb44359821e71c29903f2152b4658509dac0d (patch) | |
tree | 853f01ca01f1ab39b0bc64849296946cba1637c4 /Doc | |
parent | a077b2fbb88f5192bb47e514334f760bf08d0295 (diff) | |
download | cpython-f55cb44359821e71c29903f2152b4658509dac0d.zip cpython-f55cb44359821e71c29903f2152b4658509dac0d.tar.gz cpython-f55cb44359821e71c29903f2152b4658509dac0d.tar.bz2 |
gh-106672: C API: Report indiscriminately ignored errors (GH-106674)
Functions which indiscriminately ignore all errors now report them as
unraisable errors.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.13.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index ef83f66..cca2827 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -980,6 +980,15 @@ Changes in the Python API The result is now the same if ``wantobjects`` is set to ``0``. (Contributed by Serhiy Storchaka in :gh:`97928`.) +* Functions :c:func:`PyDict_GetItem`, :c:func:`PyDict_GetItemString`, + :c:func:`PyMapping_HasKey`, :c:func:`PyMapping_HasKeyString`, + :c:func:`PyObject_HasAttr`, :c:func:`PyObject_HasAttrString`, and + :c:func:`PySys_GetObject`, which clear all errors occurred during calling + the function, report now them using :func:`sys.unraisablehook`. + You can consider to replace these functions with other functions as + recomended in the documentation. + (Contributed by Serhiy Storchaka in :gh:`106672`.) + Build Changes ============= |