[Python-checkins] Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
Miss Islington (bot)
webhook-mailer at python.org
Mon Feb 25 10:18:27 EST 2019
https://github.com/python/cpython/commit/d14999b18407302b5a291aed49382a0ca8baf7c6
commit: d14999b18407302b5a291aed49382a0ca8baf7c6
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-02-25T07:18:20-08:00
summary:
Correct name of 'defaultobj' parameter in PyDict_SetDefault() signature. (GH-11929)
(cherry picked from commit d90a141bb947b68601f8d1f37bc98f7b524f0e01)
Co-authored-by: Sergey Fedoseev <fedoseev.sergey at gmail.com>
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