SF patch #783807: Clarify PySequence_Setitem ref counting

(Contributed by Jay T Miller.)
This commit is contained in:
Raymond Hettinger 2003-08-09 04:37:14 +00:00
parent 3f42a6d267
commit 12c484dab8
1 changed files with 2 additions and 1 deletions

View File

@ -754,7 +754,8 @@ determination.
\begin{cfuncdesc}{int}{PySequence_SetItem}{PyObject *o, int i, PyObject *v}
Assign object \var{v} to the \var{i}th element of \var{o}. Returns
\code{-1} on failure. This is the equivalent of the Python
statement \samp{\var{o}[\var{i}] = \var{v}}.
statement \samp{\var{o}[\var{i}] = \var{v}}. This function \emph{does not}
steal a reference to \var{v}.
\end{cfuncdesc}
\begin{cfuncdesc}{int}{PySequence_DelItem}{PyObject *o, int i}