Python 2.0b1 is released!

Bernhard Reiter breiter at usf.Uni-Osnabrueck.DE
Wed Sep 6 10:46:44 EDT 2000


In article <Pine.LNX.4.21.0009061312290.24593-100000 at fep132.fep.ru>,
	Oleg Broytmann <phd at phd.russ.ru> writes:
> 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?

Well.. no. I even might prefer:
	i=dict["key"]
	i.attr=i.attr+12

But this is personal taste (see my other post about it.)
	Bernhard



More information about the Python-list mailing list