From c384b226d765d5f57a909df8da3f4fcdfb4b7246 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 18 May 2009 15:35:26 +0000 Subject: Issue 6037: MutableSequence.__iadd__ should return self. --- Lib/_abcoll.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 7b01178..a60d91e 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -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 -- cgit v0.12