PyMapping_SetItemString() returns int, not an object.

This commit is contained in:
Guido van Rossum 1998-10-16 17:43:53 +00:00
parent b521095952
commit 0a0f11b6d4
1 changed files with 1 additions and 1 deletions

View File

@ -1596,7 +1596,7 @@ Return element of \var{o} corresponding to the object \var{key} or
\samp{\var{o}[\var{key}]}. \samp{\var{o}[\var{key}]}.
\end{cfuncdesc} \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}. 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 Returns \code{-1} on failure. This is the equivalent of the Python
statement \samp{\var{o}[\var{key}] = \var{v}}. statement \samp{\var{o}[\var{key}] = \var{v}}.