Skip to content

Commit

Permalink
gh-119391: Amend comment description of PyMapping_Items, PyMapping_Va…
Browse files Browse the repository at this point in the history
…lues and PyMapping_Keys (#119392)

The behaviour was changed in 0ccc0f6.
  • Loading branch information
eendebakpt authored May 22, 2024
1 parent 858b9e8 commit d472b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Include/abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d472b4f

Please sign in to comment.