diff options
author | Dong-hee Na <donghee.na@python.org> | 2021-08-25 17:54:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 17:54:20 (GMT) |
commit | 551da597a0996b0fb3af425f48aa5bc63ea6b963 (patch) | |
tree | b25b0cd691a97c00ede8fba1005d99643b25b952 /Doc/whatsnew | |
parent | 24da544014f78e6f1440d5ce5c2d14794a020340 (diff) | |
download | cpython-551da597a0996b0fb3af425f48aa5bc63ea6b963.zip cpython-551da597a0996b0fb3af425f48aa5bc63ea6b963.tar.gz cpython-551da597a0996b0fb3af425f48aa5bc63ea6b963.tar.bz2 |
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.11.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 306385c..296b1b2 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -176,6 +176,8 @@ Other CPython Implementation Changes support :class:`typing.SupportsComplex` and :class:`typing.SupportsBytes` protocols. (Contributed by Mark Dickinson and Dong-hee Na in :issue:`24234`.) +* A :exc:`SyntaxError` (instead of a :exc:`NameError`) will be raised when deleting the :const:`__debug__` constant. (Contributed by Dong-hee Na in :issue:`45000`.) + New Modules =========== |