summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-05-16 10:42:58 (GMT)
committerGitHub <noreply@github.com>2022-05-16 10:42:58 (GMT)
commit0d8500c739dc5ea926b2ec1ec02e400738225dac (patch)
tree2144c8fac452f03f24b336f01dabb38435c1145f
parent730902c0ad997462d2567e48def5352fe75c0e2c (diff)
downloadcpython-0d8500c739dc5ea926b2ec1ec02e400738225dac.zip
cpython-0d8500c739dc5ea926b2ec1ec02e400738225dac.tar.gz
cpython-0d8500c739dc5ea926b2ec1ec02e400738225dac.tar.bz2
gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)
Automerge-Triggered-By: GH:pablogsal
-rw-r--r--Doc/whatsnew/3.11.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 6518eea..97dd096 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -1116,8 +1116,8 @@ Deprecated
that was added in Python 3.10.
(Contributed by Raymond Hettinger in :gh:`89519`.)
-* Octal escapes with value larger than ``0o377`` now produce
- a :exc:`DeprecationWarning`.
+* Octal escapes in string and bytes literals with value larger than ``0o377`` now
+ produce :exc:`DeprecationWarning`.
In a future Python version they will be a :exc:`SyntaxWarning` and
eventually a :exc:`SyntaxError`.
(Contributed by Serhiy Storchaka in :gh:`81548`.)