Searched refs:_cache (Results 1 - 25 of 31) sorted by relevance

12

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
H A Dfnmatch.py17 _cache = {} variable
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
[all...]
H A Dre.py194 _cache.clear()
219 _cache = {} variable
229 p = _cache.get(cachekey)
243 if len(_cache) >= _MAXCACHE:
244 _cache.clear()
245 _cache[cachekey] = p
H A Dfilecmp.py18 _cache = {} variable
51 outcome = _cache.get((f1, f2, s1, s2))
54 if len(_cache) > 100: # limit the maximum size of the cache
55 _cache.clear()
56 _cache[f1, f2, s1, s2] = outcome
H A Dsite.py472 encodings._cache[enc] = encodings._unknown
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A Dfnmatch.py17 _cache = {} variable
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
[all...]
H A Dre.py194 _cache.clear()
219 _cache = {} variable
229 p = _cache.get(cachekey)
243 if len(_cache) >= _MAXCACHE:
244 _cache.clear()
245 _cache[cachekey] = p
H A Dfilecmp.py18 _cache = {} variable
51 outcome = _cache.get((f1, f2, s1, s2))
54 if len(_cache) > 100: # limit the maximum size of the cache
55 _cache.clear()
56 _cache[f1, f2, s1, s2] = outcome
H A Dsite.py472 encodings._cache[enc] = encodings._unknown
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/encodings/
H A D__init__.py35 _cache = {} variable
74 entry = _cache.get(encoding, _unknown)
116 _cache[encoding] = None
140 _cache[encoding] = entry
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/encodings/
H A D__init__.py35 _cache = {} variable
74 entry = _cache.get(encoding, _unknown)
116 _cache[encoding] = None
140 _cache[encoding] = entry
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_fnmatch.py6 from fnmatch import fnmatch, fnmatchcase, _MAXCACHE, _cache namespace
7 from fnmatch import fnmatch, fnmatchcase, _MAXCACHE, _cache, _purge namespace
65 self.assertLessEqual(len(_cache), _MAXCACHE)
H A Dtest_xml_etree.py449 >>> cache_len_10 = len(ET.ElementPath._cache)
451 >>> len(ET.ElementPath._cache) == cache_len_10
454 >>> len(ET.ElementPath._cache) > cache_len_10
457 >>> len(ET.ElementPath._cache) < 500
1876 self._path_cache = ElementTree.ElementPath._cache
1880 ElementTree.ElementPath._cache = self._path_cache.copy()
1887 ElementTree.ElementPath._cache = self._path_cache
H A Dtest_multiprocessing.py2321 self._cache = []
2322 return self._cache
2329 self._cache = []
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_fnmatch.py6 from fnmatch import fnmatch, fnmatchcase, _MAXCACHE, _cache namespace
7 from fnmatch import fnmatch, fnmatchcase, _MAXCACHE, _cache, _purge namespace
65 self.assertLessEqual(len(_cache), _MAXCACHE)
H A Dtest_xml_etree.py449 >>> cache_len_10 = len(ET.ElementPath._cache)
451 >>> len(ET.ElementPath._cache) == cache_len_10
454 >>> len(ET.ElementPath._cache) > cache_len_10
457 >>> len(ET.ElementPath._cache) < 500
1876 self._path_cache = ElementTree.ElementPath._cache
1880 ElementTree.ElementPath._cache = self._path_cache.copy()
1887 ElementTree.ElementPath._cache = self._path_cache
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/compiler/
H A Dvisitor.py36 self._cache = {}
45 meth = self._cache.get(klass, None)
49 self._cache[klass] = meth
76 meth = self._cache.get(node.__class__, None)
80 self._cache[node.__class__] = meth
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/compiler/
H A Dvisitor.py36 self._cache = {}
45 meth = self._cache.get(klass, None)
49 self._cache[klass] = meth
76 meth = self._cache.get(node.__class__, None)
80 self._cache[node.__class__] = meth
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/
H A Dreduction.py89 _cache = set() variable
92 global _lock, _listener, _cache
93 for h in _cache:
95 _cache.clear()
126 _cache.remove(handle_wanted)
146 _cache.add(dup_handle)
H A Dpool.py140 self._cache = {}
180 args=(self._outqueue, self._quick_get, self._cache)
190 self._result_handler, self._cache),
258 result = IMapIterator(self._cache)
265 result = IMapIterator(self._cache)
276 result = IMapUnorderedIterator(self._cache)
283 result = IMapUnorderedIterator(self._cache)
293 result = ApplyResult(self._cache, callback)
313 result = MapResult(self._cache, chunksize, len(iterable), callback)
324 while thread._state == RUN or (pool._cache an
[all...]
H A Dmanagers.py884 def MakeProxyType(name, exposed, _cache={}):
890 return _cache[(name, exposed)]
902 _cache[(name, exposed)] = ProxyType
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/
H A Dreduction.py89 _cache = set() variable
92 global _lock, _listener, _cache
93 for h in _cache:
95 _cache.clear()
126 _cache.remove(handle_wanted)
146 _cache.add(dup_handle)
H A Dpool.py140 self._cache = {}
180 args=(self._outqueue, self._quick_get, self._cache)
190 self._result_handler, self._cache),
258 result = IMapIterator(self._cache)
265 result = IMapIterator(self._cache)
276 result = IMapUnorderedIterator(self._cache)
283 result = IMapUnorderedIterator(self._cache)
293 result = ApplyResult(self._cache, callback)
313 result = MapResult(self._cache, chunksize, len(iterable), callback)
324 while thread._state == RUN or (pool._cache an
[all...]
H A Dmanagers.py884 def MakeProxyType(name, exposed, _cache={}):
890 return _cache[(name, exposed)]
902 _cache[(name, exposed)] = ProxyType
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/xml/etree/
H A DElementPath.py235 _cache = {} variable
252 selector = _cache[path]
254 if len(_cache) > 100:
255 _cache.clear()
272 _cache[path] = selector
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/xml/etree/
H A DElementPath.py235 _cache = {} variable
252 selector = _cache[path]
254 if len(_cache) > 100:
255 _cache.clear()
272 _cache[path] = selector

Completed in 4190 milliseconds

12