This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Yongjik Kim, blueyed, christian.heimes, coldfix, kernc, mpaolini, ncoghlan, nedbat, vstinner, xtreak
Date 2021-12-13.23:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639438429.29.0.0881367454673.issue34624@roundup.psfhosted.org>
In-reply-to
Content
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"
History
Date User Action Args
2021-12-13 23:33:49vstinnersetrecipients: + vstinner, ncoghlan, blueyed, christian.heimes, nedbat, mpaolini, kernc, xtreak, coldfix, Yongjik Kim
2021-12-13 23:33:49vstinnersetmessageid: <1639438429.29.0.0881367454673.issue34624@roundup.psfhosted.org>
2021-12-13 23:33:49vstinnerlinkissue34624 messages
2021-12-13 23:33:49vstinnercreate