[Python-checkins] gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)
miss-islington
webhook-mailer at python.org
Mon May 16 06:43:03 EDT 2022
https://github.com/python/cpython/commit/0d8500c739dc5ea926b2ec1ec02e400738225dac
commit: 0d8500c739dc5ea926b2ec1ec02e400738225dac
branch: main
author: Pablo Galindo Salgado <Pablogsal at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-16T03:42:58-07:00
summary:
gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)
Automerge-Triggered-By: GH:pablogsal
files:
M Doc/whatsnew/3.11.rst
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 6518eea4c7ba5..97dd096731f0c 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`.)
More information about the Python-checkins
mailing list