Issue 6037: MutableSequence.__iadd__ should return self.

This commit is contained in:
Raymond Hettinger 2009-05-18 15:35:26 +00:00
parent 93fb3aad50
commit c384b226d7

View file

@ -598,6 +598,7 @@ class MutableSequence(Sequence):
def __iadd__(self, values):
self.extend(values)
return self
MutableSequence.register(list)
MutableSequence.register(bytearray) # Multiply inheriting, see ByteString