Home | History | Annotate | Download | only in python2.7

Lines Matching full:_cache

17 _cache = {}
22 _cache.clear()
50 if not pat in _cache:
52 if len(_cache) >= _MAXCACHE:
53 _cache.clear()
54 _cache[pat] = re.compile(res)
55 match=_cache[pat].match
74 if not pat in _cache:
76 if len(_cache) >= _MAXCACHE:
77 _cache.clear()
78 _cache[pat] = re.compile(res)
79 return _cache[pat].match(name) is not None