From 5df4808d5eadd7ae845e81a75041694a634996ce Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 22 Nov 2026 11:15:46 -0500 Subject: [PATCH] Docs: add a versionchanged note for regexes in warnings (GH-162390) (cherry picked from commit 434744eacaf80391d8c0d531bcf4e820d94e53d1) Co-authored-by: Ned Batchelder --- Doc/library/warnings.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index bb5604f6d2b786..644544e7257fc2 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -184,6 +184,8 @@ class, to turn a warning into an error we simply raise ``category(message)``. If a warning is reported and doesn't match any registered filter then the "default" action is applied (hence its name). +.. versionchanged:: 3.15 + Added regular expression support for *message* and *module*. .. _repeated-warning-suppression-criteria: