New submission from Michal Laboš <miso1...@gmail.com>:

The current warning filter seems to filter out the compile time 
DeprecationWarnings that get triggered on invalid escape sequences:

import warnings

compile("'\d'", "<string>", "eval")
warnings.resetwarnings()
compile("'\d'", "<string>", "eval")


results in one
<string>:1: DeprecationWarning: invalid escape sequence \d
being printed

----------
messages: 365825
nosy: Michal Laboš
priority: normal
severity: normal
status: open
title: Invalid escape sequence DeprecationWarnings don't trigger by default
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40199>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to