diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2019-02-25 14:52:40 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-02-25 14:52:40 (GMT) |
commit | d90a141bb947b68601f8d1f37bc98f7b524f0e01 (patch) | |
tree | 2c14a4ec7fd855ebd22647894359c3bf1977e814 | |
parent | 16323cb2c3d315e02637cebebdc5ff46be32ecdf (diff) | |
download | cpython-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.rst | 2 |
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 |