]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119391: Amend comment description of PyMapping_Items, PyMapping_Values and PyMappi...
authorPieter Eendebak <pieter.eendebak@gmail.com>
Wed, 22 May 2024 12:52:36 +0000 (14:52 +0200)
committerGitHub <noreply@github.com>
Wed, 22 May 2024 12:52:36 +0000 (08:52 -0400)
The behaviour was changed in 0ccc0f6c7.

Include/abstract.h

index bd12a54963c13fb2b5809a8a7be53601645d2106..f0e49c1afb81648dc9962ff941f1a4ce5a26e728 100644 (file)
@@ -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);