Worth of [] +=

Steve Juranich sjuranic at condor.ee.washington.edu
Thu Sep 14 14:06:19 EDT 2000


First off, I've only been hacking Python for about 2 months now, so please
be patient.

I'm a little confused about this whole thing of += with a list object.
Didn't we already have that with the list.append() function?  Does the +=
operate differently (so that end users like me will notice)?  If it does
work differently, what will be the benefit of += that list.append() didn't
have?

TIA

----------------------------------------------------------------------
Stephen W. Juranich                         sjuranic at ee.washington.edu
Electrical Engineering         http://students.washington.edu/sjuranic
University of Washington             http://rcs.ee.washington.edu/ssli





More information about the Python-list mailing list