comparison 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
comparison
equal deleted inserted replaced
9382:8a349309fdf4 9383:2b34461ba4a3
1594 Return element of \var{o} corresponding to the object \var{key} or 1594 Return element of \var{o} corresponding to the object \var{key} or
1595 \NULL{} on failure. This is the equivalent of the Python expression 1595 \NULL{} on failure. This is the equivalent of the Python expression
1596 \samp{\var{o}[\var{key}]}. 1596 \samp{\var{o}[\var{key}]}.
1597 \end{cfuncdesc} 1597 \end{cfuncdesc}
1598 1598
1599 \begin{cfuncdesc}{PyObject*}{PyMapping_SetItemString}{PyObject *o, char *key, PyObject *v} 1599 \begin{cfuncdesc}{int}{PyMapping_SetItemString}{PyObject *o, char *key, PyObject *v}
1600 Map the object \var{key} to the value \var{v} in object \var{o}. 1600 Map the object \var{key} to the value \var{v} in object \var{o}.
1601 Returns \code{-1} on failure. This is the equivalent of the Python 1601 Returns \code{-1} on failure. This is the equivalent of the Python
1602 statement \samp{\var{o}[\var{key}] = \var{v}}. 1602 statement \samp{\var{o}[\var{key}] = \var{v}}.
1603 \end{cfuncdesc} 1603 \end{cfuncdesc}
1604 1604