total idiot question: +=, .=, etc...
greg.ewing at compaq.com
Wed Jun 23 23:27:16 CEST 1999
Bernhard Reiter wrote:
> += just saves some space and typing time.
It's not quite as simple as that, because
a[i] = a[i] + expr
a[i] += expr
would be semantically different if the former
did the index lookup only once. However, there
are serious difficulties with trying to incorporate
such semantics into Python's execution model,
and the consensus among experienced Python
implementation hackers seems to be that the results
would be Not Worth The Bother (tm).
More information about the Python-list