bpo-39176: Improve error message for 'named assignment' (GH-17777)

This commit is contained in:
Ned Batchelder 2019-12-31 21:40:58 -05:00 committed by Raymond Hettinger
parent ba82ee894c
commit 37143a8e3b
3 changed files with 4 additions and 4 deletions

View file

@ -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):