On Wed, Sep 28, 2011 at 7:28 PM, Xah Lee <xah...@gmail.com> wrote: > suppose you have 300 different strings and they need all be replaced > to say "aaa". > > is it faster to replace each one sequentially
Before you ask "is it faster", you need to first be sure it's correct. I would recommend doing all the replaces in a single function call to avoid risk of overlaps or other issues causing problems. ChrisA -- http://mail.python.org/mailman/listinfo/python-list