Commit 6cc14a05 authored by Raymond Hettinger's avatar Raymond Hettinger

MutableSequence requires an insert() method.

parent b8b6d3ef
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment