Skip to content

Commit 0d8500c

Browse files
authored
gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)
Automerge-Triggered-By: GH:pablogsal
1 parent 730902c commit 0d8500c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/whatsnew/3.11.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,8 @@ Deprecated
11161116
that was added in Python 3.10.
11171117
(Contributed by Raymond Hettinger in :gh:`89519`.)
11181118

1119-
* Octal escapes with value larger than ``0o377`` now produce
1120-
a :exc:`DeprecationWarning`.
1119+
* Octal escapes in string and bytes literals with value larger than ``0o377`` now
1120+
produce :exc:`DeprecationWarning`.
11211121
In a future Python version they will be a :exc:`SyntaxWarning` and
11221122
eventually a :exc:`SyntaxError`.
11231123
(Contributed by Serhiy Storchaka in :gh:`81548`.)

0 commit comments

Comments
 (0)