[New-bugs-announce] [issue39176] Syntax error message uses strange term: "named assignment"
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" ?
title: Syntax error message uses strange term: "named assignment"
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce