From 12c484dab8608b5f597a7abbec08fd9d21b4c042 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 9 Aug 2003 04:37:14 +0000 Subject: [PATCH] SF patch #783807: Clarify PySequence_Setitem ref counting (Contributed by Jay T Miller.) --- Doc/api/abstract.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex index dd237683f6..977a17a32d 100644 --- a/Doc/api/abstract.tex +++ b/Doc/api/abstract.tex @@ -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} -- 2.50.1