Re: Mutable String

2006-05-04 Thread Pierre Thibault
Ok, That will do the job. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mutable String

2006-05-03 Thread Scott David Daniels
Pierre Thibault wrote: > I would like to know if there are modules offering a mutable version of > strings in Python? Nope. But, for some uses: import array stringish = array.array{'c', 'Whatever, kiddo!') stringish[-6:-1] = array.array('c', 'dudes') print stringish.tostring()

Mutable String

2006-05-03 Thread Pierre Thibault
I would like to know if there are modules offering a mutable version of strings in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: mutable string?

2005-01-16 Thread "Martin v. Löwis"
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, bu