From: Benjamin Peterson Date: Mon, 11 Mar 2013 16:50:21 +0000 (-0500) Subject: say defaultobj is returned (#17327) X-Git-Tag: v3.4.0a1~1224 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=285581405d6f7bb789115efd28db37a90c814ed1;p=python say defaultobj is returned (#17327) --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 2b4ac8e089..b91ecb69a1 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -114,9 +114,9 @@ Dictionary Objects 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 - is not in the dict, it is inserted with value *defaultobj*. This function - evaluates the hash function of *key* only once, instead of evaluating it - independently for the lookup and the insertion. + is not in the dict, it is inserted with value *defaultobj* and *defautobj* is + returned. This function evaluates the hash function of *key* only once, + instead of evaluating it independently for the lookup and the insertion. .. c:function:: PyObject* PyDict_Items(PyObject *p)