]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 6037: MutableSequence.__iadd__ should return self.
authorRaymond Hettinger <python@rcn.com>
Mon, 18 May 2009 15:49:55 +0000 (15:49 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 18 May 2009 15:49:55 +0000 (15:49 +0000)
Lib/_abcoll.py

index 73966dbce6b65bd5e842b23b6caf41ee15436f9b..16d85b44dc9b23b384947c180681da38ed557e32 100644 (file)
@@ -595,6 +595,7 @@ class MutableSequence(Sequence):
 
     def __iadd__(self, values):
         self.extend(values)
+        return self
 
 MutableSequence.register(list)
 MutableSequence.register(bytearray)  # Multiply inheriting, see ByteString