Handy thing I just spotted coming to Python 3.15:
"The -W option and the PYTHONWARNINGS environment variable can now specify regular expressions instead of literal strings to match the warning message and the module name, if the corresponding field starts and ends with a forward slash (/).
"(Contributed by Serhiy Storchaka in gh-134716.)"
https://docs.python.org/3.15/whatsnew/3.15.html#other-language-changes







