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

Bernhard Reiter bernhard at
Sat Aug 14 10:12:53 CEST 1999

On 13 Aug 1999 19:41:18 GMT, Drew McDowell <drew.mcdowell at> 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...

Research Assistant, Geog Dept UM-Milwaukee, USA.    (
Association for a Free Informational Infrastructure              (

More information about the Python-list mailing list