mutable string objects

Python strings are immutable objects. This has the advantage, that strings may be used as dictionary keys. If this property isn't needed and you insist on changing string values in place instead, you may cheat and use MutableString.

But the purpose of this class is an educational one: to prevent people from inventing their own mutable string class derived from UserString and than forget thereby to remove (override) the __hash__ method inherited from UserString. This would lead to errors that would be very hard to track down.

A faster and better solution is to rewrite your program using lists.

Base classes

Implemented Interfaces

There are no implemented interfaces.


There are no attributes in this class.


Known Subclasses

There are no known subclasses.