Home
last modified time | relevance | path

Searched refs:popitem (Results 1 – 25 of 84) sorted by relevance

1234

/external/python/cachetools/src/cachetools/
D__init__.py77 self.popitem()
160 def popitem(self): member in FIFOCache
191 def popitem(self): member in LFUCache
222 def popitem(self): member in LRUCache
259 def popitem(self): member in MRUCache
287 def popitem(self): member in RRCache
480 def popitem(self): member in TTLCache
/external/python/cpython3/Lib/test/
Dtest_ordered_dict.py226 self.assertEqual(od.popitem(), pairs.pop())
228 od.popitem()
237 obj.popitem(True)
238 obj.popitem(True)
239 obj.popitem(last=True)
563 od.popitem()
584 od.popitem(last=False)
627 dict.popitem(od)
857 self.assertRaises(KeyError, d.popitem)
869 self.assertRaises(KeyError, d.popitem)
[all …]
Dtest_iterlen.py120 self.mutate = d.popitem
127 self.mutate = d.popitem
134 self.mutate = d.popitem
Dmapping_tests.py35 key, value = self.reference.popitem()
39 key, value = self.reference.popitem()
127 key, value = d.popitem()
131 self.assertRaises(KeyError, p.popitem)
290 self.assertRaises(KeyError, d.popitem)
291 self.assertRaises(TypeError, d.popitem, 42)
516 ka, va = ta = a.popitem()
518 kb, vb = tb = b.popitem()
Dtest_dict_version.py154 self.check_version_changed(d, d.popitem)
158 d.popitem)
Dtest_userdict.py141 self.assertEqual(t.popitem(), ("x", 42))
142 self.assertRaises(KeyError, t.popitem)
/external/python/dateutil/dateutil/tz/
D_factories.py45 cls.__strong_cache.popitem(last=False)
70 cls.__strong_cache.popitem(last=False)
/external/bcc/tests/python/
Dtest_stat1.py56 x = self.stats.popitem()
60 (_, x) = self.stats.popitem()
/external/python/cpython2/Lib/
DUserDict.py101 def popitem(self): member in UserDict
102 return self.data.popitem()
177 def popitem(self): member in DictMixin
Dweakref.py216 def popitem(self): member in WeakValueDictionary
220 key, wr = self.data.popitem()
470 def popitem(self): member in WeakKeyDictionary
472 key, value = self.data.popitem()
/external/python/cpython2/Lib/test/
Dtest_iterlen.py135 self.mutate = d.popitem
142 self.mutate = d.popitem
149 self.mutate = d.popitem
Dmapping_tests.py36 key, value = self.reference.popitem()
40 key, value = self.reference.popitem()
131 key, value = d.popitem()
135 self.assertRaises(KeyError, p.popitem)
297 self.assertRaises(KeyError, d.popitem)
298 self.assertRaises(TypeError, d.popitem, 42)
535 ka, va = ta = a.popitem()
537 kb, vb = tb = b.popitem()
Dtest_ordered_dict.py123 self.assertEqual(od.popitem(), pairs.pop())
125 od.popitem()
297 self.assertRaises(KeyError, d.popitem)
307 self.assertRaises(KeyError, d.popitem)
Dtest_userdict.py151 self.assertEqual(t.popitem(), ("x", 42))
152 self.assertRaises(KeyError, t.popitem)
353 k, v = s.popitem()
362 self.assertRaises(KeyError, s.popitem)
/external/python/cachetools/docs/
Dindex.rst44 :meth:`self.popitem()` repeatedly until there is enough room for the
72 This class discards arbitrary items using :meth:`popitem` to make
73 space when necessary. Derived classes may override :meth:`popitem`
80 :members: popitem
86 :members: popitem
92 :members: popitem
98 :members: popitem
104 :members: choice, popitem
115 :members: popitem, timer, ttl
154 all cache implementations call :meth:`popitem` to evict items from the
[all …]
/external/starlark-go/starlark/testdata/
Ddict.star30 # dict.popitem
32 assert.eq([x7.popitem(), x7.popitem()], [("a", 1), ("b", 2)])
33 assert.fails(x7.popitem, "empty dict")
/external/python/cpython3/Lib/
Dweakref.py253 def popitem(self): member in WeakValueDictionary
257 key, wr = self.data.popitem()
496 def popitem(self): member in WeakKeyDictionary
499 key, value = self.data.popitem()
/external/python/cachetools/tests/
D__init__.py109 cache.popitem()
117 self.Cache(maxsize=2).popitem()
213 self.assertEqual((1, 1), cache.popitem())
/external/fonttools/Lib/fontTools/misc/
DdictTools.py50 def popitem(self, *args, **kwargs): member in hashdict
/external/tensorflow/tensorflow/core/function/polymorphism/
Dtype_dispatch.py104 self._dispatch_cache.popitem(last=False)
/external/cronet/third_party/protobuf/python/google/protobuf/
Dmessage_factory.py184 _AddFile(file_by_name.popitem()[1])
/external/python/cachetools/
DCHANGELOG.rst54 - Improve ``popitem()`` exception context handling.
159 - Use ``Counter.most_common()`` for ``LFUCache.popitem()``.
/external/protobuf/python/google/protobuf/
Dmessage_factory.py188 _AddFile(file_by_name.popitem()[1])
/external/python/asn1crypto/asn1crypto/
D_ordereddict.py77 def popitem(self, last=True): member in OrderedDict
/external/mesa3d/scons/
Dgallium.py275 env.popitem('debug')
276 env.popitem('profile')

1234