summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPieter Eendebak <pieter.eendebak@gmail.com>2024-05-22 12:52:36 (GMT)
committerGitHub <noreply@github.com>2024-05-22 12:52:36 (GMT)
commitd472b4f9fa4fb6061588d421f33a0388a2005bc6 (patch)
tree70ea2c0815af48f147c96a50a6df6a8e9ca133d3
parent858b9e85fcdd495947c9e892ce6e3734652c48f2 (diff)
downloadcpython-d472b4f9fa4fb6061588d421f33a0388a2005bc6.zip
cpython-d472b4f9fa4fb6061588d421f33a0388a2005bc6.tar.gz
cpython-d472b4f9fa4fb6061588d421f33a0388a2005bc6.tar.bz2
gh-119391: Amend comment description of PyMapping_Items, PyMapping_Values and PyMapping_Keys (#119392)
The behaviour was changed in 0ccc0f6c7.
-rw-r--r--Include/abstract.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index bd12a54..f0e49c1 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -852,15 +852,15 @@ PyAPI_FUNC(int) PyMapping_HasKeyWithError(PyObject *o, PyObject *key);
PyAPI_FUNC(int) PyMapping_HasKeyStringWithError(PyObject *o, const char *key);
-/* On success, return a list or tuple of the keys in mapping object 'o'.
+/* On success, return a list of the keys in mapping object 'o'.
On failure, return NULL. */
PyAPI_FUNC(PyObject *) PyMapping_Keys(PyObject *o);
-/* On success, return a list or tuple of the values in mapping object 'o'.
+/* On success, return a list of the values in mapping object 'o'.
On failure, return NULL. */
PyAPI_FUNC(PyObject *) PyMapping_Values(PyObject *o);
-/* On success, return a list or tuple of the items in mapping object 'o',
+/* On success, return a list of the items in mapping object 'o',
where each item is a tuple containing a key-value pair. On failure, return
NULL. */
PyAPI_FUNC(PyObject *) PyMapping_Items(PyObject *o);