Is there a way to really pickle compiled regular expressions in python?

后端 未结 7 1684
一整个雨季
一整个雨季 2020-12-13 15:00

I have a python console application that contains 300+ regular expressions. The set of regular expressions is fixed for each release. When users run the app, the entire se

7条回答
  •  情书的邮戳
    2020-12-13 15:18

    As long as you create them on program start, the pyc file will cache them. You don't need to result to pickling.

提交回复
热议问题