"Boris Borcic" email@example.com wrote in message news:firstname.lastname@example.org... | | Title says it all. Got used to += et al. My mind often expects augmented | assignment syntax to exist uniformly for whatever transform.
I the analogy can be improved.
x += y # abbreviates x = x + y # which could have been defined to have been written x = +(x,y) # and which usually *is* equivalent to x = type(x).__add__(x,y)
Hence by analogy, I would rewrite x = f(x,y) # as x f= y # ;-)
Making the obvious generalization to n params, and specializing to one, gives