From: Raymond Hettinger Date: Wed, 6 Feb 2008 22:14:55 +0000 (+0000) Subject: MutableSequence requires an insert() method. X-Git-Tag: v3.0a3~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cc14a05d203868b84418a06d6c8254a4470e448;p=thirdparty%2FPython%2Fcpython.git MutableSequence requires an insert() method. --- diff --git a/Lib/UserString.py b/Lib/UserString.py index 615c135f1645..c3267ad73331 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -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)