Searched refs:viewkeys (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_dictviews.py | 10 kt = type({}.viewkeys()) 22 keys = d.viewkeys() 34 self.assertEqual(d.viewkeys(), d.viewkeys()) 36 self.assertEqual(d.viewkeys(), e.viewkeys()) 38 self.assertNotEqual(d.viewkeys(), e.viewkeys()) 66 self.assertEqual(d.viewkeys(), e.viewitems()) 67 self.assertNotEqual(d.viewitems(), e.viewkeys()) 82 r = repr(d.viewkeys()) 95 self.assertEqual(d1.viewkeys() & d1.viewkeys(), {'a', 'b'}) 96 self.assertEqual(d1.viewkeys() & d2.viewkeys(), {'b'}) [all …]
|
D | test_ordered_dict.py | 254 self.assertEqual(list(od.viewkeys()), s) 259 self.assertEqual(od.viewkeys(), dict(od).viewkeys()) 275 test_support.check_free_after_iterating(self, lambda d: iter(d.viewkeys()), OrderedDict)
|
D | test_dict.py | 689 test_support.check_free_after_iterating(self, lambda d: iter(d.viewkeys()), dict)
|
D | test_sys.py | 598 check({}.viewkeys(), size('P'))
|
/external/python/cpython2/Lib/ |
D | collections.py | 234 def viewkeys(self): member in OrderedDict
|
D | _abcoll.py | 456 KeysView.register(type({}.viewkeys()))
|
/external/python/cpython2/Doc/library/ |
D | shelve.rst | 60 Note, the Python 3 transition methods (:meth:`~dict.viewkeys`,
|
D | userdict.rst | 77 Note that DictMixin does not implement the :meth:`~dict.viewkeys`,
|
D | 2to3.rst | 214 :meth:`dict.viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues` are
|
D | stdtypes.rst | 2288 .. method:: viewkeys() 2311 The objects returned by :meth:`dict.viewkeys`, :meth:`dict.viewvalues` and 2373 >>> keys = dishes.viewkeys()
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 557 under the new names :meth:`~dict.viewkeys`, :meth:`~dict.viewvalues`, 565 >>> d.viewkeys() 574 >>> d1.viewkeys() & d2.viewkeys() 576 >>> d1.viewkeys() | range(0, 30) 582 >>> vk = d.viewkeys()
|
/external/python/cpython2/Doc/ |
D | glossary.rst | 186 The objects returned from :meth:`dict.viewkeys`, :meth:`dict.viewvalues`,
|