A curious bit of code...
roy at panix.com
Thu Feb 13 22:51:50 CET 2014
In article <mailman.6893.1392328170.18130.python-list at python.org>,
Serhiy Storchaka <storchaka at gmail.com> wrote:
> 13.02.14 21:59, Zachary Ware Ð½Ð°Ð¿Ð¸ÑÐ°Ð²(Ð»Ð°):
> > don't use re for simple stuff (because while it may be very fast, it's
> > dominated by attribute lookup and function call overhead),
> And the time of re variant depends on the size of input.
That's a good point. It's nice, for a change, to see somebody shoot
down a regex solution for a valid reason :-)
More information about the Python-list