mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix typo in PyDict_SetDefault docs.
This commit is contained in:
parent
6584a1e72c
commit
fc5c5320a0
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ Dictionary Objects
|
|||
|
||||
.. 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue