Replace Several Items

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Aug 13 17:51:29 EDT 2008


Fredrik Lundh:
> suggested exercise: benchmark re.sub with literal replacement, re.sub
> with callback (lambda m: ""), repeated replace, and repeated use of the form
...
> on representative data.

Please, add the translate() solution too I have suggested :-)

Bye,
bearophile



More information about the Python-list mailing list