[Python-checkins] Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)

Serhiy Storchaka webhook-mailer at python.org
Mon Feb 25 09:52:44 EST 2019


https://github.com/python/cpython/commit/d90a141bb947b68601f8d1f37bc98f7b524f0e01
commit: d90a141bb947b68601f8d1f37bc98f7b524f0e01
branch: master
author: Sergey Fedoseev <fedoseev.sergey at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2019-02-25T16:52:40+02:00
summary:

Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)

files:
M Doc/c-api/dict.rst

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



More information about the Python-checkins mailing list