Python 2.0b1 is released!

Bernhard Reiter breiter at usf.Uni-Osnabrueck.DE
Thu Sep 7 04:59:18 EDT 2000


In article <Pine.LNX.4.21.0009061512060.24593-100000 at fep132.fep.ru>,
	Oleg Broytmann <phd at phd.russ.ru> writes:
> On 6 Sep 2000, Bernhard Reiter wrote:
>> Well.. no. I even might prefer:
>> 	i=dict["key"]
>> 	i.attr=i.attr+12
> 
> dict["key"][k2] += 12 vs dict["key"][k2] = dict["key"][k2] + 12
> 
>    You cannot shorten dict["key"][k2] += 12 to
> 
> i = dict["key"][k2]
> i = i + 12
> 
>    You only can
> 
> i = dict["key"]
> i[k2] = i[k2] + 12
> 
>    Which one is faster? :)

Which one is more readable? 

Seriously, the matter is settled and was decided.
So we shall not flame us about it anymore... :)
	Bernhard


-- 
Professional Service around Free Software                (intevation.net)  
The FreeGIS Project				            (freegis.org)
Association for a Free Informational Infrastructure            (ffii.org)



More information about the Python-list mailing list