diff options
author | Gregory P. Smith <greg@krypto.org> | 2019-08-10 07:19:07 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-10 07:19:07 (GMT) |
commit | b4be87a04a2a8ccfd2480e19dc527589fce53555 (patch) | |
tree | 1a5d702c094d9f502f702d0c809ee4019dd54538 /Doc/whatsnew/3.8.rst | |
parent | 92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d (diff) | |
download | cpython-b4be87a04a2a8ccfd2480e19dc527589fce53555.zip cpython-b4be87a04a2a8ccfd2480e19dc527589fce53555.tar.gz cpython-b4be87a04a2a8ccfd2480e19dc527589fce53555.tar.bz2 |
bpo-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195)
DeprecationWarning will continue to be emitted for invalid escape
sequences in string and bytes literals just as it did in 3.7.
SyntaxWarning may be emitted in the future. But per mailing list
discussion, we don't yet know when because we haven't settled on how to
do so in a non-disruptive manner.
(Applies 4c5b6bac2408f879231c7cd38d67657dd4804e7c to the master branch).
(This is https://github.com/python/cpython/pull/15142 for master/3.9)
https://bugs.python.org/issue32912
Automerge-Triggered-By: @gpshead
Diffstat (limited to 'Doc/whatsnew/3.8.rst')
-rw-r--r-- | Doc/whatsnew/3.8.rst | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index d8062e7..82da10c 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -414,11 +414,6 @@ 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`.) - * The compiler now produces a :exc:`SyntaxWarning` in some cases when a comma is missed before tuple or list. For example:: |