Ezio Melotti added the comment:

What about adding a lazy_compile() function?  It will leave the current 
behavior unchanged, it's explicit, and it's easier to use cross version (if 
importing re.lazy_compile fails, use re.compile).

FWIW I'm -1 on changing re.compile, -1 on adding re.IMMEDIATE, -0.5 on adding 
re.DEFERRED (not sure this option belongs among the re flag), +1 on adding a 
compile-time optimization.

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to