[Python-Dev] Investigating time for `import requests`

Antoine Pitrou solipsis at pitrou.net
Mon Oct 2 16:57:02 EDT 2017


On Mon, 2 Oct 2017 11:15:35 -0400
Barry Warsaw <barry at python.org> wrote:
> 
> I think there are opportunities for an explicit API for lazy compilation of regular expressions, but I’m skeptical of the adoption curve making it worthwhile.  But maybe I’m wrong!

We already have two caching schemes available in the re module: one
explicit and eager with re.compile(), one implicit and lazy with
re.search() and friends.  I doubt we really need a third one :-)

Regards

Antoine.




More information about the Python-Dev mailing list