In article <[EMAIL PROTECTED]>, Magnus Lycka <[EMAIL PROTECTED]> wrote: ... > On the other hand: > > >>> class C: > ... a = [1] > ... > >>> b=C() > >>> b.a += [2] > >>> b.a > [1, 2] > >>> C.a > [1, 2] > > I can understand that Guido was a bit reluctant to introduce > += etc into Python, and it's important to understand that they > typically behave differently for immutable and mutable objects.
As far as I know, Guido has never added a feature reluctantly. He can take full responsibility for this misguided wart. Donn Cave, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list