From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 25 Feb 2019 15:18:20 +0000 (-0800) Subject: Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929) X-Git-Tag: v3.7.3rc1~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d14999b18407302b5a291aed49382a0ca8baf7c6;p=thirdparty%2FPython%2Fcpython.git Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929) (cherry picked from commit d90a141bb947b68601f8d1f37bc98f7b524f0e01) Co-authored-by: Sergey Fedoseev --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 4e55c1a977ce..0ced5a5fd001 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