summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2022-04-30 10:16:27 (GMT)
committerGitHub <noreply@github.com>2022-04-30 10:16:27 (GMT)
commit3483299a24e41a7f2e958369cb3573d7c2253e33 (patch)
treef51b90e97184249f71c6df08579a2f4a8899d43a /Doc/whatsnew
parenta055dac0b45031878a8196a8735522de018491e3 (diff)
downloadcpython-3483299a24e41a7f2e958369cb3573d7c2253e33.zip
cpython-3483299a24e41a7f2e958369cb3573d7c2253e33.tar.gz
cpython-3483299a24e41a7f2e958369cb3573d7c2253e33.tar.bz2
gh-81548: Deprecate octal escape sequences with value larger than 0o377 (GH-91668)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 1a692f2..59c8dd6 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -1055,6 +1055,12 @@ CPython bytecode changes
Deprecated
==========
+* Octal escapes with value larger than ``0o377`` now produce
+ a :exc:`DeprecationWarning`.
+ In a future Python version they will be a :exc:`SyntaxWarning` and
+ eventually a :exc:`SyntaxError`.
+ (Contributed by Serhiy Storchaka in :issue:`81548`.)
+
* The :mod:`lib2to3` package and ``2to3`` tool are now deprecated and may not
be able to parse Python 3.10 or newer. See the :pep:`617` (New PEG parser for
CPython). (Contributed by Victor Stinner in :issue:`40360`.)