diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-03-11 16:50:21 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-03-11 16:50:21 (GMT) |
commit | 285581405d6f7bb789115efd28db37a90c814ed1 (patch) | |
tree | b6e9f8c5160a107efd07178256aaa69e0c52ae97 /Doc/c-api/dict.rst | |
parent | e094833f22050e301bb28178d3ff17a8b0561ced (diff) | |
download | cpython-285581405d6f7bb789115efd28db37a90c814ed1.zip cpython-285581405d6f7bb789115efd28db37a90c814ed1.tar.gz cpython-285581405d6f7bb789115efd28db37a90c814ed1.tar.bz2 |
say defaultobj is returned (#17327)
Diffstat (limited to 'Doc/c-api/dict.rst')
-rw-r--r-- | Doc/c-api/dict.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 2b4ac8e..b91ecb6 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) |