Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a0f11b

Browse files
committed
PyMapping_SetItemString() returns int, not an object.
1 parent b521095 commit 0a0f11b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/api/api.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ \section{Mapping Protocol}
15961596
\samp{\var{o}[\var{key}]}.
15971597
\end{cfuncdesc}
15981598
1599-
\begin{cfuncdesc}{PyObject*}{PyMapping_SetItemString}{PyObject *o, char *key, PyObject *v}
1599+
\begin{cfuncdesc}{int}{PyMapping_SetItemString}{PyObject *o, char *key, PyObject *v}
16001600
Map the object \var{key} to the value \var{v} in object \var{o}.
16011601
Returns \code{-1} on failure. This is the equivalent of the Python
16021602
statement \samp{\var{o}[\var{key}] = \var{v}}.

0 commit comments

Comments
 (0)