From d90a141bb947b68601f8d1f37bc98f7b524f0e01 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Mon, 25 Feb 2019 19:52:40 +0500 Subject: Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929) --- Doc/c-api/dict.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 4e55c1a..0ced5a5 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -119,7 +119,7 @@ Dictionary Objects To get error reporting use :c:func:`PyDict_GetItemWithError()` instead. -.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *default) +.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *defaultobj) This is the same as the Python-level :meth:`dict.setdefault`. If present, it returns the value corresponding to *key* from the dictionary *p*. If the key -- cgit v0.12