[Python-Dev] re performance

Serhiy Storchaka storchaka at gmail.com
Sun Jan 29 16:00:34 EST 2017


On 29.01.17 22:30, Steve Holden wrote:
> Why not declare re deprecated and remove it in Python 4? I am pretty
> sure everyone wants to keep re in all 3.x releases, but that support
> need not extend beyond. So Py4 would have no battery for re, but it
> would (should!) be common knowledge that regex was the go-to module for
> general-purpose pattern matching. If re has advantages in certain
> situations someone might upgrade the 3.x implementation and provide it
> as a 3rd-party module, though the effort involved would be significant,
> so someone would have to be motivated to keep it.

Regular expressions are used in a number of standard modules and 
scripts. Excluding them from the stdlib would require excluding or 
rewriting the large part of the stdlib.




More information about the Python-Dev mailing list