]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Mon, 16 May 2022 10:42:58 +0000 (11:42 +0100)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 10:42:58 +0000 (03:42 -0700)
Automerge-Triggered-By: GH:pablogsal
Doc/whatsnew/3.11.rst

index 6518eea4c7ba5592cf569882cf6f95cced509ad3..97dd096731f0c3397e563770663daa165bd3c18c 100644 (file)
@@ -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`.)