From: Raymond Hettinger Date: Mon, 18 May 2009 15:35:26 +0000 (+0000) Subject: Issue 6037: MutableSequence.__iadd__ should return self. X-Git-Tag: v3.1rc1~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c384b226d765d5f57a909df8da3f4fcdfb4b7246;p=python Issue 6037: MutableSequence.__iadd__ should return self. --- diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 7b01178a05..a60d91e7cb 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