question about speed of sequential string replacement vs regex or

Chris Angelico rosuav at gmail.com
Wed Sep 28 09:19:32 EDT 2011


On Wed, Sep 28, 2011 at 10:28 PM, Xah Lee <xahlee at gmail.com> wrote:
> each string needs to be changed to a unique
> string, not all to the same string.

And you'll find that this is, by and large, the most normal situation.
Folding many strings down to one string is a lot less common. So,
let's have some real-world use cases and then we can talk
recommendations.

ChrisA



More information about the Python-list mailing list