/external/python/cpython2/Lib/ |
D | weakref.py | 190 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()
|
D | UserDict.py | 101 def popitem(self): member in UserDict 102 return self.data.popitem() 177 def popitem(self): member in DictMixin
|
D | _abcoll.py | 528 def popitem(self): member in MutableMapping 544 self.popitem()
|
D | sets.py | 537 return self._data.popitem()[0]
|
D | collections.py | 170 def popitem(self, last=True): member in OrderedDict
|
D | mailbox.py | 158 def popitem(self): member in Mailbox
|
/external/python/cpython2/Lib/test/ |
D | test_iterlen.py | 135 self.mutate = d.popitem 142 self.mutate = d.popitem 149 self.mutate = d.popitem
|
D | mapping_tests.py | 35 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()
|
D | test_ordered_dict.py | 123 self.assertEqual(od.popitem(), pairs.pop()) 125 od.popitem() 284 self.assertRaises(KeyError, d.popitem) 294 self.assertRaises(KeyError, d.popitem)
|
D | test_userdict.py | 151 self.assertEqual(t.popitem(), ("x", 42)) 152 self.assertRaises(KeyError, t.popitem) 353 k, v = s.popitem() 362 self.assertRaises(KeyError, s.popitem)
|
D | test_dict.py | 348 ka, va = ta = a.popitem() 350 kb, vb = tb = b.popitem() 357 self.assertRaises(KeyError, d.popitem)
|
D | test_bsddb.py | 277 k, v = self.f.popitem()
|
D | test_mailbox.py | 359 key, msg = self._box.popitem() 412 self._box.popitem() 414 self._box.popitem() 489 self.assertRaises(NotImplementedError, lambda: box.popitem())
|
D | test_weakref.py | 1228 k, v = weakdict.popitem() 1234 k, v = weakdict.popitem()
|
D | test_collections.py | 892 elem, cnt = c.popitem()
|
/external/markdown/markdown/ |
D | odict.py | 52 def popitem(self): member in OrderedDict 53 result = super(OrderedDict, self).popitem()
|
/external/chromium-trace/catapult/devil/devil/android/perf/ |
D | surface_stats_collector.py | 118 return pids_dict.popitem()[1][0]
|
/external/autotest/site_utils/rpm_control_system/ |
D | utils.py | 106 removed_key, _ = self.cache.popitem(last=False)
|
/external/mesa3d/scons/ |
D | gallium.py | 249 env.popitem('debug') 250 env.popitem('profile')
|
/external/protobuf/python/google/protobuf/internal/ |
D | containers.py | 132 def popitem(self): member in MutableMapping 144 self.popitem()
|
/external/python/cpython2/Doc/library/ |
D | userdict.rst | 65 :meth:`__delitem__` will preclude only :meth:`pop` and :meth:`popitem` from the
|
D | collections.rst | 810 .. method:: OrderedDict.popitem(last=True) 812 The :meth:`popitem` method for ordered dictionaries returns and removes 928 … ``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``,
|
D | rfc822.rst | 269 :meth:`clear`, :meth:`copy`, :meth:`popitem`, or :meth:`update` methods of the
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.1.rst | 736 * 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
|
D | 2.7.rst | 247 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)
|