From: Guido van Rossum Date: Fri, 16 Oct 1998 17:43:53 +0000 (+0000) Subject: PyMapping_SetItemString() returns int, not an object. X-Git-Tag: v1.5.2a2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a0f11b6d4d6c1a269a3c303ed4a61811dfdaa2a;p=thirdparty%2FPython%2Fcpython.git PyMapping_SetItemString() returns int, not an object. --- diff --git a/Doc/api/api.tex b/Doc/api/api.tex index 93e061c458fc..48da118962af 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -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}}.