bpo-45000: Raise SyntaxError when try to delete __debug__ #27947
Conversation
|
pablogsal
reviewed
Aug 25, 2021
Misc/NEWS.d/next/Core and Builtins/2021-08-25-23-17-32.bpo-45000.XjmyLl.rst
Outdated
Show resolved
Hide resolved
pablogsal
reviewed
Aug 25, 2021
pablogsal
approved these changes
Aug 25, 2021
pablogsal
reviewed
Aug 25, 2021
@@ -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`.) |
We should backport, so this needs to be moved to the 3.10 document
@corona10 I think you missed this message :)
I think you missed this message :)
@pablogsal Looks like due to auto-merge
label :(
@corona10: Status check is done, and it's a success |
pablogsal
pushed a commit
that referenced
this issue
Aug 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
https://bugs.python.org/issue45000
Automerge-Triggered-By: GH:pablogsal
The text was updated successfully, but these errors were encountered: