question about speed of sequential string replacement vs regex or

Chris Angelico rosuav at gmail.com
Wed Sep 28 09:26:37 EDT 2011


On Wed, Sep 28, 2011 at 11:14 PM, Xah Lee <xahlee at gmail.com> wrote:
> (while (< ii (length pairs))
>      (setq mystr (replace-regexp-in-string
>                   (elt tempMapPoints ii)
>                   (elt (elt pairs ii) 1)
>                   mystr t t))
>      (setq ii (1+ ii))
>      )

from __future__ import lisp_syntax

There, that makes it on-topic for the Python list... I guess.

ChrisA



More information about the Python-list mailing list