[Python-ideas] x )= f as shorthand for x=f(x)

Boris Borcic bborcic at gmail.com
Fri Nov 9 15:39:59 CET 2007

Title says it all. Got used to += et al. My mind often expects augmented 
assignment syntax to exist uniformly for whatever transform.

If I am not mistaken, python syntax doesn't permit augmented assignment 
operators to sit between parens so that )= wouldn't risk confusing quick 
machine- or eye-scans to match parens.

Cheers, BB

More information about the Python-ideas mailing list