mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-81548: Deprecate octal escape sequences with value larger than 0o377 (GH-91668)
This commit is contained in:
parent
a055dac0b4
commit
3483299a24
8 changed files with 139 additions and 18 deletions
|
@ -596,6 +596,11 @@ Notes:
|
|||
(1)
|
||||
As in Standard C, up to three octal digits are accepted.
|
||||
|
||||
.. versionchanged:: 3.11
|
||||
Octal escapes with value larger than ``0o377`` produce a :exc:`DeprecationWarning`.
|
||||
In a future Python version they will be a :exc:`SyntaxWarning` and
|
||||
eventually a :exc:`SyntaxError`.
|
||||
|
||||
(2)
|
||||
Unlike in Standard C, exactly two hex digits are required.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue