Mercurial > cpython-lru_cache-weakref
diff Doc/api/api.tex @ 9383:2b34461ba4a3 legacy-trunk
PyMapping_SetItemString() returns int, not an object.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 16 Oct 1998 17:43:53 +0000 |
| parents | febca6b1827d |
| children | 1ea6d2356e52 |
line wrap: on
line diff
--- a/Doc/api/api.tex Fri Oct 16 17:34:34 1998 +0000 +++ b/Doc/api/api.tex Fri Oct 16 17:43:53 1998 +0000 @@ -1596,7 +1596,7 @@ \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}}.
