Remove Whitespace

Martin Blais blais at furius.ca
Thu Apr 13 22:52:26 EDT 2006


On 13 Apr 2006 12:32:56 -0700, thunderfoot at gmail.com
<thunderfoot at gmail.com> wrote:
> re.sub() doesn't do the substitution in place: it returns the resulting
> string. Try this:

In-place substitution is impossible in Python, strings are immutable.



More information about the Python-list mailing list