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

Tom Christiansen tchrist at
Wed Aug 18 23:22:16 EDT 1999

     [courtesy cc of this posting mailed to cited author]

In comp.lang.python, akuchlin at writes:
:... but if you coded "for i
:in biglist: resultlist += thingy", you'd do a lot of unnecessary list

Only if you implemented it that way, which wouldn't appear to be
particularly clever. :-)

    "Just because you're screwed *up* doesn't mean you're screwed." --Larry Wall

More information about the Python-list mailing list