Compound Assignment Operators ( +=, *=, etc...)

Bernhard Reiter bernhard at alpha1.csd.uwm.edu
Sat Aug 14 10:12:53 CEST 1999


On 13 Aug 1999 19:41:18 GMT, Drew McDowell <drew.mcdowell at msfc.nasa.gov> wrote:
>I looked in the FAQ and couldn't find anything on the Compound
>Assignment Operators.
>(+=, *=, -=, etc..)
Yeah, maybe it should be a FAQ.
>Why dosen't Python support them?  
Don't really know, I guess the authors consider them unnecessary
syntactic sugar.
>Is there a easy way to add them?
Make you editor replace += with the proper thing.
Browse newgroup archive (dejanews) to find some example for vim...
	Bernhard


-- 
Research Assistant, Geog Dept UM-Milwaukee, USA.    (www.uwm.edu/~bernhard)
Association for a Free Informational Infrastructure              (ffii.org)




More information about the Python-list mailing list