Ok,
That will do the job. Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
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()
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
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