[New-bugs-announce] [issue39176] Syntax error message uses strange term: "named assignment"
Ned Batchelder
report at bugs.python.org
Tue Dec 31 20:44:07 EST 2019
New submission from Ned Batchelder <ned at nedbatchelder.com>:
I know this is not allowed:
>>> ((a, b, c) := (1, 2, 3))
File "<stdin>", line 1
SyntaxError: cannot use named assignment with tuple
But what is "named assignment", and why is this SyntaxError talking about it? Shouldn't it say "cannot use assignment expressions with tuple" ?
----------
messages: 359138
nosy: nedbat
priority: normal
severity: normal
status: open
title: Syntax error message uses strange term: "named assignment"
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39176>
_______________________________________
More information about the New-bugs-announce
mailing list