diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-13 04:48:45 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-13 04:48:45 (GMT) |
commit | 8f7649eae4194c3ed5407714300a1da1daf8bee0 (patch) | |
tree | 8c37d96adae2e33a8ed09d2dc885e93089a462b7 /Doc/c-api/mapping.rst | |
parent | 6aa7c8ce3ce0ef942956ee4cf3563082d53f0d75 (diff) | |
download | cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.zip cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.tar.gz cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.tar.bz2 |
more list()s on dictviews
Diffstat (limited to 'Doc/c-api/mapping.rst')
-rw-r--r-- | Doc/c-api/mapping.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/mapping.rst b/Doc/c-api/mapping.rst index 1d0ed50..5b2de14 100644 --- a/Doc/c-api/mapping.rst +++ b/Doc/c-api/mapping.rst @@ -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) |