public
Created

  • Download Gist
gistfile1.py
Python
1 2 3
class MyRECache(dict):
def __missing__(self, regex):
return self.setdefault(regex, re.compile(regex))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.