From 3ae10bf2ce9ead0725b7f4d60c803a71394275a5 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 1e8acb0cb51c918..028e6c5817e50bc 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -188,6 +188,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: