Mutable Strings - Any libraries that offer this?

Jack Diederich jackdied at gmail.com
Mon Jul 27 02:36:17 CEST 2009


On Mon, Jul 20, 2009 at 5:57 AM, casebash<walkraft at gmail.com> wrote:
> Hi,
>
> I have searched this list and found out that Python doesn't have a
> mutable string class (it had an inefficient one, but this was removed
> in 3.0). Are there any libraries outside the core that offer this?

It depends on how mutable you want your strings.  There have been
several patches proposed on python-dev over the years that do things
like lazy concatenation and ropes.  They were always shot down because
the implementation or the semantics were very complicated.

-Jack



More information about the Python-list mailing list