mutable string?

"Martin v. Löwis" martin at
Sun Jan 16 06:46:06 EST 2005

Torsten Mohr wrote:
> is there some string class that i can change in place,
> like perls strings?

array.array is mutable. You can use the 'c' code if
you want an array of characters.

> Is it possible to do some regex replacement functions
> that would even change its length?

You can't use re.sub array, but you can use,
and you can perform slice assigment.

> Can i append to this string?


> Is there some wrapper for C++ STL string class (if that
> would make sense)?

It would be possible, but I cannot see why one would want
to do that.


More information about the Python-list mailing list