Robert Kern wrote: > It's consistent with using a.extend("world") which is what the += is > sugar for. > > In [1]:a = ['hello'] > > In [2]:a.extend("world") > > In [3]:a > Out[3]:['hello', 'w', 'o', 'r', 'l', 'd'] > > It's a *good* thing that .extend() takes any iterable without explicit > conversion to a list. I think that it's just a minor annoyance that the > behavior passes on to +=.
mapping += to extend is a design mistake (I guess someone got a little carried away). </F> -- http://mail.python.org/mailman/listinfo/python-list