]> granicus.if.org Git - python/commitdiff
Doc: Add list(dict) in stdtypes library (GH-16209)
authorAdorilson Bezerra <adorilson@gmail.com>
Tue, 17 Sep 2019 04:57:14 +0000 (01:57 -0300)
committerStéphane Wirtel <stephane@wirtel.be>
Tue, 17 Sep 2019 04:57:14 +0000 (06:57 +0200)
Doc/library/stdtypes.rst

index a21c5538cbcc743f2e10426e673c87d39d9ca1d0..3895a972a72a8a7aeb2824e120f22dec126fa4c4 100644 (file)
@@ -4234,6 +4234,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*.