summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-02-25 14:52:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-02-25 14:52:40 (GMT)
commitd90a141bb947b68601f8d1f37bc98f7b524f0e01 (patch)
tree2c14a4ec7fd855ebd22647894359c3bf1977e814
parent16323cb2c3d315e02637cebebdc5ff46be32ecdf (diff)
downloadcpython-d90a141bb947b68601f8d1f37bc98f7b524f0e01.zip
cpython-d90a141bb947b68601f8d1f37bc98f7b524f0e01.tar.gz
cpython-d90a141bb947b68601f8d1f37bc98f7b524f0e01.tar.bz2
Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
-rw-r--r--Doc/c-api/dict.rst2
1 files changed, 1 insertions, 1 deletions
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