[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

Terry J. Reedy report at bugs.python.org
Fri Apr 10 16:09:27 EDT 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

On Win 10, with recently compiled 3.7.7+ and 3.9.0a5+, I get 4 warnings also.

>>> import warnings
>>> compile("'\d'", "<string>", "eval")
<stdin>:1: DeprecationWarning: invalid escape sequence \d
<string>:1: DeprecationWarning: invalid escape sequence \d
<code object <module> at 0x00A65DC0, file "<string>", line 1>
>>> warnings.resetwarnings()
>>> compile("'\d'", "<string>", "eval")
<stdin>:1: DeprecationWarning: invalid escape sequence \d
<string>:1: DeprecationWarning: invalid escape sequence \d
<code object <module> at 0x00A66190, file "<string>", line 1>

Numerior, what 3.8 binaries are you running?  I suspect that this should be closed as 'out of date'.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40199>
_______________________________________


More information about the Python-bugs-list mailing list