@@ -50,21 +50,21 @@ Mapping Protocol
5050
5151.. c :function :: PyObject* PyMapping_Keys (PyObject *o)
5252
53- On success, return a list of the keys in object * o *. On failure, return * NULL *.
54- This is equivalent to the Python expression `` list(o.keys()) `` .
53+ On success, return a list, a tuple or a dictionary view in case of a dict,
54+ of the keys in object * o *. On failure, return * NULL * .
5555
5656
5757.. c :function :: PyObject* PyMapping_Values (PyObject *o)
5858
59- On success, return a list of the values in object * o *. On failure, return
60- * NULL *. This is equivalent to the Python expression `` list(o.values()) `` .
59+ On success, return a list, a tuple or a dictionary view in case of a dict, of
60+ the values in object * o *. On failure, return * NULL * .
6161
6262
6363.. c :function :: PyObject* PyMapping_Items (PyObject *o)
6464
65- On success, return a list of the items in object * o *, where each item is a tuple
66- containing a key-value pair. On failure, return * NULL *. This is equivalent to
67- the Python expression `` list(o.items()) `` .
65+ On success, return a list, a tuple or a dictionary view in case of a dict, of
66+ the items in object * o *, where each item is a tuple containing a key-value
67+ pair. On failure, return * NULL * .
6868
6969
7070.. c :function :: PyObject* PyMapping_GetItemString (PyObject *o, const char *key)
0 commit comments