Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/
Dweakref.py190 def popitem(self): member in WeakValueDictionary
194 key, wr = self.data.popitem()
437 def popitem(self): member in WeakKeyDictionary
439 key, value = self.data.popitem()
DUserDict.py101 def popitem(self): member in UserDict
102 return self.data.popitem()
177 def popitem(self): member in DictMixin
D_abcoll.py528 def popitem(self): member in MutableMapping
544 self.popitem()
Dsets.py537 return self._data.popitem()[0]
Dcollections.py170 def popitem(self, last=True): member in OrderedDict
Dmailbox.py158 def popitem(self): member in Mailbox
/external/python/cpython2/Lib/test/
Dtest_iterlen.py135 self.mutate = d.popitem
142 self.mutate = d.popitem
149 self.mutate = d.popitem
Dmapping_tests.py35 key, value = self.reference.popitem()
39 key, value = self.reference.popitem()
130 key, value = d.popitem()
134 self.assertRaises(KeyError, p.popitem)
296 self.assertRaises(KeyError, d.popitem)
297 self.assertRaises(TypeError, d.popitem, 42)
534 ka, va = ta = a.popitem()
536 kb, vb = tb = b.popitem()
Dtest_ordered_dict.py123 self.assertEqual(od.popitem(), pairs.pop())
125 od.popitem()
284 self.assertRaises(KeyError, d.popitem)
294 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.py348 ka, va = ta = a.popitem()
350 kb, vb = tb = b.popitem()
357 self.assertRaises(KeyError, d.popitem)
Dtest_bsddb.py277 k, v = self.f.popitem()
Dtest_mailbox.py359 key, msg = self._box.popitem()
412 self._box.popitem()
414 self._box.popitem()
489 self.assertRaises(NotImplementedError, lambda: box.popitem())
Dtest_weakref.py1228 k, v = weakdict.popitem()
1234 k, v = weakdict.popitem()
Dtest_collections.py892 elem, cnt = c.popitem()
/external/markdown/markdown/
Dodict.py52 def popitem(self): member in OrderedDict
53 result = super(OrderedDict, self).popitem()
/external/chromium-trace/catapult/devil/devil/android/perf/
Dsurface_stats_collector.py118 return pids_dict.popitem()[1][0]
/external/autotest/site_utils/rpm_control_system/
Dutils.py106 removed_key, _ = self.cache.popitem(last=False)
/external/mesa3d/scons/
Dgallium.py249 env.popitem('debug')
250 env.popitem('profile')
/external/protobuf/python/google/protobuf/internal/
Dcontainers.py132 def popitem(self): member in MutableMapping
144 self.popitem()
/external/python/cpython2/Doc/library/
Duserdict.rst65 :meth:`__delitem__` will preclude only :meth:`pop` and :meth:`popitem` from the
Dcollections.rst810 .. method:: OrderedDict.popitem(last=True)
812 The :meth:`popitem` method for ordered dictionaries returns and removes
928 … ``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``,
Drfc822.rst269 :meth:`clear`, :meth:`copy`, :meth:`popitem`, or :meth:`update` methods of the
/external/python/cpython2/Doc/whatsnew/
D2.1.rst736 * A new method, :meth:`popitem`, was added to dictionaries to enable
739 all the keys or values. ``D.popitem()`` removes a random ``(key, value)`` pair
D2.7.rst247 The :meth:`~collections.OrderedDict.popitem` method has an optional *last*
253 >>> od.popitem()
255 >>> od.popitem()
257 >>> od.popitem(last=False)
259 >>> od.popitem(last=False)

12