mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
PyMapping_SetItemString() returns int, not an object.
This commit is contained in:
parent
b521095952
commit
0a0f11b6d4
1 changed files with 1 additions and 1 deletions
|
|
@ -1596,7 +1596,7 @@ Return element of \var{o} corresponding to the object \var{key} or
|
|||
\samp{\var{o}[\var{key}]}.
|
||||
\end{cfuncdesc}
|
||||
|
||||
\begin{cfuncdesc}{PyObject*}{PyMapping_SetItemString}{PyObject *o, char *key, PyObject *v}
|
||||
\begin{cfuncdesc}{int}{PyMapping_SetItemString}{PyObject *o, char *key, PyObject *v}
|
||||
Map the object \var{key} to the value \var{v} in object \var{o}.
|
||||
Returns \code{-1} on failure. This is the equivalent of the Python
|
||||
statement \samp{\var{o}[\var{key}] = \var{v}}.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue