diff -r 96cdd2532034 Doc/c-api/mapping.rst --- a/Doc/c-api/mapping.rst Sun Nov 08 11:09:37 2015 +0000 +++ b/Doc/c-api/mapping.rst Sat Jan 02 13:07:49 2016 +0530 @@ -50,21 +50,21 @@ .. c:function:: 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 ``list(o.keys())``. + On success, return a list, a tuple or a dictionary view of the keys in object *o*. + On failure, return *NULL*. .. c:function:: 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 ``list(o.values())``. + On success, return a list, a tuple or a dictionary view of the values in object *o*. + On failure, return *NULL*. This is equivalent to the Python expression ``list(o.values())``. .. c:function:: 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 ``list(o.items())``. + On success, return a list, a tuple or a dictionary view 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 ``list(o.items())``. .. c:function:: PyObject* PyMapping_GetItemString(PyObject *o, const char *key) diff -r 96cdd2532034 Include/abstract.h --- a/Include/abstract.h Sun Nov 08 11:09:37 2015 +0000 +++ b/Include/abstract.h Sat Jan 02 13:07:49 2016 +0530 @@ -1216,22 +1216,22 @@ PyAPI_FUNC(PyObject *) PyMapping_Keys(PyObject *o); /* - On success, return a list or tuple of the keys in object o. - On failure, return NULL. + On success, return a list, a tuple or a dictionary view of the keys + in object o. On failure, return NULL. */ PyAPI_FUNC(PyObject *) PyMapping_Values(PyObject *o); /* - On success, return a list or tuple of the values in object o. - On failure, return NULL. + On success, return a list, a tuple or a dictionary view of the values + in object o. On failure, return NULL. */ PyAPI_FUNC(PyObject *) PyMapping_Items(PyObject *o); /* - On success, return a list or tuple of the items in object o, - where each item is a tuple containing a key-value pair. + On success, return a list, a tuple or a dictionary view of the items + in object o, where each item is a tuple containing a key-value pair. On failure, return NULL. */