-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-45000: Raise SyntaxError when try to delete __debug__ #27947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Misc/NEWS.d/next/Core and Builtins/2021-08-25-23-17-32.bpo-45000.XjmyLl.rst
Outdated
Show resolved
Hide resolved
@@ -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`.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should backport, so this needs to be moved to the 3.10 document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@corona10 I think you missed this message :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you missed this message :)
@pablogsal Looks like due to auto-merge
label :(
@corona10: Status check is done, and it's a success ✅ . |
https://bugs.python.org/issue45000
Automerge-Triggered-By: GH:pablogsal