[Python-Dev] interesting article on regex performance
g.brandl at gmx.net
Sat Mar 13 00:23:11 CET 2010
Am 12.03.2010 20:29, schrieb skip at pobox.com:
> >> There are major practical problems associated with making such a leap
> >> directly (Google's re2 engine is in C++ rather than C and we'd have
> >> to keep the existing implementation around regardless to handle the
> >> features that re2 doesn't support).
> Collin> I don't see why C++ would be a deal-breaker in this case, since
> Collin> it would be restricted to an extension module.
> Traditionally Python has run on some (minority) platforms where C++ was
> unavailable. While the re module is a dynamically linked extension module
> and thus could be considered "optional", I doubt anybody thinks of it as
> optional nowadays.
Actually, _sre is a builtin module by default since at least Python 2.5.
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-Dev