question about speed of sequential string replacement vs regex or

Neil Cerutti neilc at
Wed Sep 28 15:22:41 CEST 2011

On 2011-09-28, Chris Angelico <rosuav at> wrote:
> On Wed, Sep 28, 2011 at 10:28 PM, Xah Lee <xahlee at> 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.

I'd like to know what "string replacement" is supposed to mean in
the context of Python.

Neil Cerutti
"A politician is an arse upon which everyone has sat except a man."
  e. e. cummings 

More information about the Python-list mailing list