SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

[3.14] gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374) (#146418)

gh-146358: Fix warnings.catch_warnings on Free Threading (GH-146374)

catch_warnings now also overrides warnings.showwarning() on Free
Threading to support custom warnings.showwarning().
(cherry picked from commit 0055140b2cf3e3a86ef9ab7a39e2083212b27c58)

Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
e34945a94c8ed084d6742da0393880c975ebbc51
Parent: ce78904
Committed by GitHub <noreply@github.com> on 3/25/2026, 4:23:21 PM