diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index c4e8e6f9a1051f..273b525c9f6564 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -1100,8 +1100,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`.)