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

Tom Christiansen tchrist at mox.perl.com
Wed Aug 18 23:22:16 EDT 1999


     [courtesy cc of this posting mailed to cited author]

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

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

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




More information about the Python-list mailing list