mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
more list()s on dictviews
This commit is contained in:
parent
6aa7c8ce3c
commit
8f7649eae4
5 changed files with 8 additions and 9 deletions
|
@ -51,20 +51,20 @@ Mapping Protocol
|
|||
.. cfunction:: PyObject* PyMapping_Keys(PyObject *o)
|
||||
|
||||
On success, return a list of the keys in object *o*. On failure, return *NULL*.
|
||||
This is equivalent to the Python expression ``o.keys()``.
|
||||
This is equivalent to the Python expression ``list(o.keys())``.
|
||||
|
||||
|
||||
.. cfunction:: PyObject* PyMapping_Values(PyObject *o)
|
||||
|
||||
On success, return a list of the values in object *o*. On failure, return
|
||||
*NULL*. This is equivalent to the Python expression ``o.values()``.
|
||||
*NULL*. This is equivalent to the Python expression ``list(o.values())``.
|
||||
|
||||
|
||||
.. cfunction:: PyObject* PyMapping_Items(PyObject *o)
|
||||
|
||||
On success, return a list of the items in object *o*, where each item is a tuple
|
||||
containing a key-value pair. On failure, return *NULL*. This is equivalent to
|
||||
the Python expression ``o.items()``.
|
||||
the Python expression ``list(o.items())``.
|
||||
|
||||
|
||||
.. cfunction:: PyObject* PyMapping_GetItemString(PyObject *o, char *key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue