summaryrefslogtreecommitdiffstats
path: root/Doc/api/api.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-16 17:43:53 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-16 17:43:53 (GMT)
commit0a0f11b6d4d6c1a269a3c303ed4a61811dfdaa2a (patch)
treeafea98ab05508c17c8ca61ac46caf370c3f621b1 /Doc/api/api.tex
parentb521095952803a6bee3d315ee9023c1df4cf4fd2 (diff)
downloadcpython-0a0f11b6d4d6c1a269a3c303ed4a61811dfdaa2a.zip
cpython-0a0f11b6d4d6c1a269a3c303ed4a61811dfdaa2a.tar.gz
cpython-0a0f11b6d4d6c1a269a3c303ed4a61811dfdaa2a.tar.bz2
PyMapping_SetItemString() returns int, not an object.
Diffstat (limited to 'Doc/api/api.tex')
-rw-r--r--Doc/api/api.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index 93e061c..48da118 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}}.