Commit 0a0f11b6 authored by Guido van Rossum's avatar Guido van Rossum

PyMapping_SetItemString() returns int, not an object.

parent b5210959
......@@ -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}}.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment