Augmented assignment (was Re: Something in the function tutorial confused me.)
Aahz
aahz at pythoncraft.com
Sat Aug 11 17:28:12 EDT 2007
In article <semvi.47351$Wo7.893986 at phobos.telenet-ops.be>,
Roel Schroeven <rschroev_nospam_ml at fastmail.fm> wrote:
>
>I used to interpret the target in 'The target is only evaluated once'
>more like an L-value in C/C++. That's not correct, of course, but I
>didn't understand exactly how wrong it was until now.
It's true almost everywhere except augmented assignment. Augmented
assignment is a prime example of the compromises one needs to make in
adding features.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"And if that makes me an elitist...I couldn't be happier." --JMS
More information about the Python-list
mailing list