10 May
2018
10 May
'18
9:57 p.m.
On Thu, May 10, 2018 at 5:04 AM, M.-A. Lemburg
To a (former Pascal) programmer, a := 1 doesn't read like an operator. It's an assignment expression. If embedded expressions is where Python is heading, it should be made very clear where the embedded expression starts and where it ends on a line.
The rules we've arrived at are about as straightforward as it gets: the RHS of `:=` ends at the nearest comma or close parenthesis/bracket/brace. OT about the name: despite Tim's relentless pushing of "binding expressions" in the end I think they should be called "assignment expressions" just like in C. -- --Guido van Rossum (python.org/~guido)