mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Issue 6037: MutableSequence.__iadd__ should return self.
This commit is contained in:
parent
93fb3aad50
commit
c384b226d7
1 changed files with 1 additions and 0 deletions
|
|
@ -598,6 +598,7 @@ class MutableSequence(Sequence):
|
||||||
|
|
||||||
def __iadd__(self, values):
|
def __iadd__(self, values):
|
||||||
self.extend(values)
|
self.extend(values)
|
||||||
|
return self
|
||||||
|
|
||||||
MutableSequence.register(list)
|
MutableSequence.register(list)
|
||||||
MutableSequence.register(bytearray) # Multiply inheriting, see ByteString
|
MutableSequence.register(bytearray) # Multiply inheriting, see ByteString
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue