Home
last modified time | relevance | path

Searched refs:_regex_cache (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Lib/
D_strptime.py276 _regex_cache = {} variable
301 global _TimeRE_cache, _regex_cache
308 _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
/external/python/cpython3/Lib/
D_strptime.py270 _regex_cache = {} variable
319 global _TimeRE_cache, _regex_cache
326 _regex_cache.clear()
328 if len(_regex_cache) > _CACHE_MAX_SIZE:
329 _regex_cache.clear()
330 format_regex = _regex_cache.get(format)
346 _regex_cache[format] = format_regex
/external/python/cpython2/Lib/test/
Dtest_strptime.py531 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] = None
544 self.assertEqual(len(_strptime._regex_cache), 1)
Dregrtest.py1562 _strptime._regex_cache.clear()
/external/python/cpython3/Lib/test/
Dtest_strptime.py649 self.assertEqual(len(_strptime._regex_cache), 1)
654 del _strptime._regex_cache['%d']
658 while len(_strptime._regex_cache) <= _strptime._CACHE_MAX_SIZE:
659 _strptime._regex_cache[bogus_key] = None
662 self.assertEqual(len(_strptime._regex_cache), 1)
/external/python/cpython3/Lib/test/libregrtest/
Drefleak.py209 _strptime._regex_cache.clear()