[Python-ideas] re.compile_lazy - on first use compiled regexes

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Sat Mar 23 13:43:19 CET 2013

> Wouldn't it make sense to add a way to pickle or marshal compiled REs ?
> The precompiled REs could then be loaded directly from the
> pickle, avoiding the compiling overhead on startup.

as far as i can tell that would need regex as part of the syntax to make 
sense fort use in modules
i dont think such a change would be accepted and i dont even what to 
deal with the potential bikeshedding for such an integration

More information about the Python-ideas mailing list