question about speed of sequential string replacement vs regex or

Randal L. Schwartz merlyn at
Wed Sep 28 12:57:44 CEST 2011

>>>>> "Xah" == Xah Lee <xahlee at> writes:

Xah> curious question.
Xah> suppose you have 300 different strings and they need all be replaced
Xah> to say "aaa".

And then suppose this isn't the *real* question, but one entirely of
Fiction by Xah Lee.

How helpful do you want to be?

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at> <URL:>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See for Smalltalk discussion

More information about the Python-list mailing list