Wojtek Walczak wrote:
suggested exercise: benchmark re.sub with literal replacement, re.sub with callback (lambda m: ""), repeated replace, and repeated use of the formif ch in my_string: my_string = my_string.replace(ch, "") on representative data.I don't have to, I can anticipate the results.
Chances are that you're wrong. </F> -- http://mail.python.org/mailman/listinfo/python-list