[New-bugs-announce] [issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

Michal Laboš report at bugs.python.org
Sun Apr 5 16:29:24 EDT 2020


New submission from Michal Laboš <miso1038 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue40199>
_______________________________________


More information about the New-bugs-announce mailing list