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

Skip to content

Commit 12c484d

Browse files
committed
SF patch #783807: Clarify PySequence_Setitem ref counting
(Contributed by Jay T Miller.)
1 parent 3f42a6d commit 12c484d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/api/abstract.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,8 @@ \section{Sequence Protocol \label{sequence}}
754754
\begin{cfuncdesc}{int}{PySequence_SetItem}{PyObject *o, int i, PyObject *v}
755755
Assign object \var{v} to the \var{i}th element of \var{o}. Returns
756756
\code{-1} on failure. This is the equivalent of the Python
757-
statement \samp{\var{o}[\var{i}] = \var{v}}.
757+
statement \samp{\var{o}[\var{i}] = \var{v}}. This function \emph{does not}
758+
steal a reference to \var{v}.
758759
\end{cfuncdesc}
759760

760761
\begin{cfuncdesc}{int}{PySequence_DelItem}{PyObject *o, int i}

0 commit comments

Comments
 (0)