]> granicus.if.org Git - python/commitdiff
PyMapping_SetItemString() returns int, not an object.
authorGuido van Rossum <guido@python.org>
Fri, 16 Oct 1998 17:43:53 +0000 (17:43 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Oct 1998 17:43:53 +0000 (17:43 +0000)
Doc/api/api.tex

index 93e061c458fc53c136862c65d4c5ab685d94bdf7..48da118962af8ec45d7224607276714177a28e1b 100644 (file)
@@ -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}}.