STINNER Victor <vstin...@python.org> added the comment:
One option is to keep the current behavior by default, but support a new "/regex/" format. The /regex/ format is commonly used in Perl and sed. Example to ignore warnings containing "deprecated" string in their message: python3 -W "ignore:/deprecated/" PYTHONWARNINGS="ignore:/deprecated/" whereas the following commands continue to match exactly the whole warning message "deprecated": python3 -W "ignore:deprecated" PYTHONWARNINGS="ignore:deprecated" ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34624> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com