summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-19 14:42:06 (GMT)
committerGitHub <noreply@github.com>2018-10-19 14:42:06 (GMT)
commit6543912c90ffa579dc4c01e811f9609cf92197d3 (patch)
tree44f433f463ad6624814d0f3c556501eeefb862b8 /Doc/whatsnew
parent209144831b0a19715bda3bd72b14a3e6192d9cc1 (diff)
downloadcpython-6543912c90ffa579dc4c01e811f9609cf92197d3.zip
cpython-6543912c90ffa579dc4c01e811f9609cf92197d3.tar.gz
cpython-6543912c90ffa579dc4c01e811f9609cf92197d3.tar.bz2
bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)
for invalid escape sequences in string and bytes literals.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index bd3283c..e522add 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -107,6 +107,12 @@ Other Language Changes
and :keyword:`return` statements.
(Contributed by David Cuthbert and Jordan Chapman in :issue:`32117`.)
+* A backslash-character pair that is not a valid escape sequence generates
+ a :exc:`DeprecationWarning` since Python 3.6. In Python 3.8 it generates
+ a :exc:`SyntaxWarning` instead.
+ (Contributed by Serhiy Storchaka in :issue:`32912`.)
+
+
New Modules
===========