> 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.

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to