]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) (GH-143603) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 Jan 2026 15:33:25 +0000 (16:33 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 15:33:25 +0000 (15:33 +0000)
commit57c56b0fb173e4b39ef4591d8745049ede129034
tree34d8e9c7260ca93d847095fab78a45dfab12e3a8
parent76184823d1ffb0fe6efcef3c44b65fd1bddd4cfa
[3.13] gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) (GH-143603) (#143612)

[3.14] gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557) (GH-143603)

gh-143547: Fix PyErr_FormatUnraisable() fallback (GH-143557)

Hold a strong reference to 'hook' while calling the default
unraisable took to log hook failure.
(cherry picked from commit 1d0baf1ae48f98b61cc869a82e1b7206298f653f)

(cherry picked from commit 39a2bcf949095bd603f7b73f15b5b478dbb49ba9)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_sys.py
Misc/NEWS.d/next/Library/2026-01-08-14-53-46.gh-issue-143547.wHBVlr.rst [new file with mode: 0644]
Python/errors.c