A curious bit of code...
Roy Smith
roy at panix.com
Thu Feb 13 16:51:50 EST 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
mailing list