Home
last modified time | relevance | path

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

1234

/external/python/dateutil/dateutil/tz/
D_factories.py45 cls.__strong_cache.popitem(last=False)
70 cls.__strong_cache.popitem(last=False)
/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)
560 od.popitem()
581 od.popitem(last=False)
624 dict.popitem(od)
842 self.assertRaises(KeyError, d.popitem)
854 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)
Dtest_dict.py453 ka, va = ta = a.popitem()
455 kb, vb = tb = b.popitem()
462 self.assertRaises(KeyError, d.popitem)
1038 item = a.popitem() # split table is combined
1072 a.__dict__.popitem()
1231 d.popitem()
/external/bcc/tests/python/
Dtest_stat1.py63 x = self.stats.popitem()
67 (_, x) = self.stats.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/markdown/markdown/
Dodict.py52 def popitem(self): member in OrderedDict
53 result = super(OrderedDict, self).popitem()
/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.py250 def popitem(self): member in WeakValueDictionary
254 key, wr = self.data.popitem()
485 def popitem(self): member in WeakKeyDictionary
488 key, value = self.data.popitem()
/external/fonttools/Lib/fontTools/misc/
DdictTools.py50 def popitem(self, *args, **kwargs): member in hashdict
/external/protobuf/python/google/protobuf/
Dmessage_factory.py159 _AddFile(file_by_name.popitem()[1])
/external/autotest/site_utils/rpm_control_system/
Dutils.py79 removed_key, _ = self.cache.popitem(last=False)
/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')
/external/python/funcsigs/funcsigs/
Dodict.py93 def popitem(self, last=True): member in OrderedDict

1234