27 Dec
2018
27 Dec
'18
3:15 p.m.
It'd be good to know just how much benefit this precompilation actually grants.
As far as I know, Pattern objects in regex module can be pickled, don't know if it's useful.
import pickle import regex p = regex.compile('[a-z]') b = pickle.dumps(p) p = pickle.loads(b)
Wow that's an old post of mine I searched on Google before post this, hope there is no omission.