mirror of https://github.com/python/cpython
MutableSequence requires an insert() method.
This commit is contained in:
parent
b8b6d3ef40
commit
6cc14a05d2
|
@ -232,6 +232,8 @@ class MutableString(UserString, collections.MutableSequence):
|
|||
def __imul__(self, n):
|
||||
self.data *= n
|
||||
return self
|
||||
def insert(self, index, value):
|
||||
self[index:index] = value
|
||||
|
||||
collections.MutableSequence.register(MutableString)
|
||||
|
||||
|
|
Loading…
Reference in New Issue