Python 2.0b1 is released!
phd at phd.russ.ru
Wed Sep 6 15:14:01 CEST 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
dict["key"].attr += 12
The second is cleaner and faster, right?
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