[Python-ideas] Yet another idea for assignment expressions

Jacco van Dorp j.van.dorp at deonet.nl
Wed May 2 03:16:25 EDT 2018

I kind of strangely like this, but it does something completely
different from parens or []. Those do have something in common -
func(param) and indexable[index] both result in some value obtained in
some way by combining the two names - either it's the result of func
when called with  param, or it's the some part of indexable identified
by index. expr{name} would have a value equal to that of expr, and
actually change name (and the change to the contained name is
something [] never does (AFAIK), and I daresay most people would agree
a function call shouldn't either.)

More information about the Python-ideas mailing list