Skip to content

Commit 592abf2

Browse files
committed
gh-81548: Clarify the deprecation of octal sequences affect byte strings
1 parent 9478b26 commit 592abf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,8 @@ Deprecated
11001100
that was added in Python 3.10.
11011101
(Contributed by Raymond Hettinger in :gh:`89519`.)
11021102

1103-
* Octal escapes with value larger than ``0o377`` now produce
1104-
a :exc:`DeprecationWarning`.
1103+
* Octal escapes in :class:`bytes` objects with value larger than ``0o377`` now
1104+
produce a :exc:`DeprecationWarning`.
11051105
In a future Python version they will be a :exc:`SyntaxWarning` and
11061106
eventually a :exc:`SyntaxError`.
11071107
(Contributed by Serhiy Storchaka in :gh:`81548`.)

0 commit comments

Comments
 (0)