replacing substrings within strings

Diez B. Roggisch deets at nospam.web.de
Wed Feb 14 08:33:36 EST 2007


> Thats the same code. I was wondering if the string manipulation can be
> done without an excursion into the list world.

That's the price to pay for immutable strings. If you have to to lots of
stuff like that, then keep things a list, and join only when you need the
result as a string.

Diez



More information about the Python-list mailing list