diff options
Diffstat (limited to 'Misc/NEWS.d/next/Core and Builtins/2022-11-02-17-02-06.gh-issue-98401.y-dbVW.rst')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-11-02-17-02-06.gh-issue-98401.y-dbVW.rst | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-11-02-17-02-06.gh-issue-98401.y-dbVW.rst b/Misc/NEWS.d/next/Core and Builtins/2022-11-02-17-02-06.gh-issue-98401.y-dbVW.rst deleted file mode 100644 index 05b33c2..0000000 --- a/Misc/NEWS.d/next/Core and Builtins/2022-11-02-17-02-06.gh-issue-98401.y-dbVW.rst +++ /dev/null @@ -1,7 +0,0 @@ -A backslash-character pair that is not a valid escape sequence now generates a -:exc:`SyntaxWarning`, instead of :exc:`DeprecationWarning`. For example, -``re.compile("\d+\.\d+")`` now emits a :exc:`SyntaxWarning` (``"\d"`` is an -invalid escape sequence), use raw strings for regular expression: -``re.compile(r"\d+\.\d+")``. In a future Python version, :exc:`SyntaxError` -will eventually be raised, instead of :exc:`SyntaxWarning`. Patch by Victor -Stinner. |