mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
bpo-39176: Improve error message for 'named assignment' (GH-17777)
This commit is contained in:
parent
ba82ee894c
commit
37143a8e3b
3 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ SyntaxError: cannot assign to True
|
|||
|
||||
>>> (True := 1)
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: cannot use named assignment with True
|
||||
SyntaxError: cannot use assignment expressions with True
|
||||
|
||||
>>> obj.__debug__ = 1
|
||||
Traceback (most recent call last):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue