Home
last modified time | relevance | path

Searched refs:viewkeys (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_dictviews.py10 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 …]
Dtest_ordered_dict.py254 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)
Dtest_dict.py689 test_support.check_free_after_iterating(self, lambda d: iter(d.viewkeys()), dict)
Dtest_sys.py598 check({}.viewkeys(), size('P'))
/external/python/cpython2/Lib/
Dcollections.py234 def viewkeys(self): member in OrderedDict
D_abcoll.py456 KeysView.register(type({}.viewkeys()))
/external/python/cpython2/Doc/library/
Dshelve.rst60 Note, the Python 3 transition methods (:meth:`~dict.viewkeys`,
Duserdict.rst77 Note that DictMixin does not implement the :meth:`~dict.viewkeys`,
D2to3.rst214 :meth:`dict.viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues` are
Dstdtypes.rst2288 .. method:: viewkeys()
2311 The objects returned by :meth:`dict.viewkeys`, :meth:`dict.viewvalues` and
2373 >>> keys = dishes.viewkeys()
/external/python/cpython2/Doc/whatsnew/
D2.7.rst557 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/
Dglossary.rst186 The objects returned from :meth:`dict.viewkeys`, :meth:`dict.viewvalues`,