Searched refs:_regex_cache (Results 1 – 3 of 3) sorted by relevance
276 _regex_cache = {} variable301 global _TimeRE_cache, _regex_cache308 _regex_cache.clear()310 if len(_regex_cache) > _CACHE_MAX_SIZE:311 _regex_cache.clear()312 format_regex = _regex_cache.get(format)328 _regex_cache[format] = format_regex
531 self.assertEqual(len(_strptime._regex_cache), 1)536 del _strptime._regex_cache['%d']540 while len(_strptime._regex_cache) <= _strptime._CACHE_MAX_SIZE:541 _strptime._regex_cache[bogus_key] = None544 self.assertEqual(len(_strptime._regex_cache), 1)
1150 _strptime._regex_cache.clear()