mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Doc: Add list(dict) in stdtypes library (GH-16209) (GH-16210)
(cherry picked from commit 63dedef48b)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
This commit is contained in:
parent
ad845becf2
commit
d90bb231c2
1 changed files with 4 additions and 0 deletions
|
|
@ -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*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue