Python 2.0b1 is released!
Oleg Broytmann
phd at phd.russ.ru
Wed Sep 6 09:14:01 EDT 2000
On 6 Sep 2000, Bernhard Reiter wrote:
> > - Augmented assignment, e.g. x += 1
>
> I cannot resist saying that I still consider this an archane "C" -like
> feature which should be better solved with the replace or macro
> function of the editor. I always liked the clearness of the normal
> x = x + 1
Do you prefer
dict["key"].attr = dict["key"].attr + 12
instead of
dict["key"].attr += 12
?
The second is cleaner and faster, right?
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list