]> granicus.if.org Git - python/commitdiff
Doc: Add list(dict) in stdtypes library (GH-16209) (GH-16210)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Sep 2019 05:05:33 +0000 (22:05 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Tue, 17 Sep 2019 05:05:33 +0000 (07:05 +0200)
(cherry picked from commit 63dedef48bba9d54f13b958237696505fa665796)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Doc/library/stdtypes.rst

index 32bd7d2b894d7d2e588477c2d3fda0a849101640..06b0c00ed10a6668da0399fcd3dd0f335b449e8c 100644 (file)
@@ -4209,6 +4209,10 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
    These are the operations that dictionaries support (and therefore, custom
    mapping types should support too):
 
+   .. describe:: list(d)
+
+      Return a list of all the keys used in the dictionary *d*.
+
    .. describe:: len(d)
 
       Return the number of items in the dictionary *d*.