Home
last modified time | relevance | path

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

123

/external/python/cpython3/Lib/test/
Dtest_ordered_dict.py223 self.assertEqual(od.popitem(), pairs.pop())
225 od.popitem()
234 obj.popitem(True)
235 obj.popitem(True)
236 obj.popitem(last=True)
556 od.popitem()
577 od.popitem(last=False)
620 dict.popitem(od)
775 self.assertRaises(KeyError, d.popitem)
787 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.py149 self.check_version_changed(d, d.popitem)
153 d.popitem)
Dtest_userdict.py141 self.assertEqual(t.popitem(), ("x", 42))
142 self.assertRaises(KeyError, t.popitem)
Dtest_dict.py421 ka, va = ta = a.popitem()
423 kb, vb = tb = b.popitem()
430 self.assertRaises(KeyError, d.popitem)
979 item = a.popitem() # split table is combined
1013 a.__dict__.popitem()
1116 d.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)
Dtest_dict.py349 ka, va = ta = a.popitem()
351 kb, vb = tb = b.popitem()
358 self.assertRaises(KeyError, d.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()
D_abcoll.py528 def popitem(self): member in MutableMapping
544 self.popitem()
/external/bcc/tests/python/
Dtest_stat1.py63 x = self.stats.popitem()
67 (_, x) = self.stats.popitem()
/external/markdown/markdown/
Dodict.py52 def popitem(self): member in OrderedDict
53 result = super(OrderedDict, self).popitem()
/external/python/cpython3/Lib/
Dweakref.py253 def popitem(self): member in WeakValueDictionary
257 key, wr = self.data.popitem()
476 def popitem(self): member in WeakKeyDictionary
479 key, value = self.data.popitem()
D_collections_abc.py804 def popitem(self): member in MutableMapping
820 self.popitem()
/external/fonttools/Lib/fontTools/misc/
DdictTools.py52 def popitem(self, *args, **kwargs): member in hashdict
/external/autotest/site_utils/rpm_control_system/
Dutils.py106 removed_key, _ = self.cache.popitem(last=False)
/external/protobuf/python/google/protobuf/internal/
Dcontainers.py132 def popitem(self): member in MutableMapping
144 self.popitem()
/external/mesa3d/scons/
Dgallium.py273 env.popitem('debug')
274 env.popitem('profile')
/external/python/funcsigs/funcsigs/
Dodict.py93 def popitem(self, last=True): member in OrderedDict
/external/tensorflow/tensorflow/core/kernels/
Dmap_stage_op.cc427 Status popitem(KeyType* key, const Tensor* indices, Tuple* tuple) { in popitem() function in tensorflow::__anonf2748bbc0111::StagingMap
707 OP_REQUIRES_OK(ctx, map->popitem(&key, indices_tensor, &tuple)); in Compute()
/external/python/cpython3/Lib/collections/
D__init__.py167 def popitem(self, last=True): member in OrderedDict
972 def popitem(self): member in ChainMap
975 return self.maps[0].popitem()

123