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.)"

docs.python.org/3.15/whatsnew/

github.com/python/cpython/issu

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/hugovk/statuses/116030465065385431 on your instance and quote it. (Note that quoting is not supported in Mastodon.)