doing hundreds of re.subs efficiently on large strings

Anders J. Munch andersjm at dancontrol.dk
Thu Mar 27 11:39:48 EST 2003


"Alex Martelli" <aleax at aleax.it> wrote:
> It's simpler/cleaner, and yes, that's more an issue of aesthetics than
> of measurements.  Not sure what you mean by the .sub method "escaping
> your attention" when it's right in the subject 

Reading help(re.sub), I took the 'repl' parameter for a simple string
parameter and missed the dual typing.

- Anders







More information about the Python-list mailing list