In Python, strings are immutable.
What is the standard idiom to walk through a string character-by-character and modify it?
The only methods I can think of a
you can use the UserString module:
>>> import UserString ... s = UserString.MutableString('Python') ... print s Python >>> s[0] = 'c' >>> print s cython