[Python-checkins] cpython: say defaultobj is returned (#17327)

benjamin.peterson python-checkins at python.org
Mon Mar 11 17:50:35 CET 2013


http://hg.python.org/cpython/rev/8948dd77b095
changeset: 82606:8948dd77b095
user: Benjamin Peterson <benjamin at python.org>
date: Mon Mar 11 11:50:21 2013 -0500
summary:
 say defaultobj is returned (#17327)
files:
 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
--- a/Doc/c-api/dict.rst
+++ b/Doc/c-api/dict.rst
@@ -114,9 +114,9 @@
 
 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)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /