[Python-checkins] cpython: Fix typo in PyDict_SetDefault docs.
ezio.melotti
python-checkins at python.org
Sun Mar 10 19:57:31 CET 2013
http://hg.python.org/cpython/rev/c33781454880
changeset: 82589:c33781454880
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sun Mar 10 20:57:16 2013 +0200
summary:
Fix typo in PyDict_SetDefault docs.
files:
Doc/c-api/dict.rst | 2 +-
1 files changed, 1 insertions(+), 1 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
@@ -112,7 +112,7 @@
.. c:function:: PyObject* PyDict_SetDefault(PyObject *p, PyObject *key, PyObject *default)
- This is the same the Python-level :meth:`dict.setdefault`. If present, it
+ 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* and *defaultobj*
is inserted. This function evaluates the hash function of *key* only once,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list