mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947)
Automerge-Triggered-By: GH:pablogsal
This commit is contained in:
parent
24da544014
commit
551da597a0
4 changed files with 12 additions and 0 deletions
|
@ -59,6 +59,10 @@ SyntaxError: cannot assign to __debug__
|
|||
Traceback (most recent call last):
|
||||
SyntaxError: cannot assign to __debug__
|
||||
|
||||
>>> del __debug__
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: cannot delete __debug__
|
||||
|
||||
>>> f() = 1
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: cannot assign to function call here. Maybe you meant '==' instead of '='?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue