diff options
author | Raymond Hettinger <python@rcn.com> | 2003-08-09 04:37:14 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-08-09 04:37:14 (GMT) |
commit | 12c484dab8608b5f597a7abbec08fd9d21b4c042 (patch) | |
tree | f5d5b397eed51d333d5280b4d87d76d282e927f1 /Doc | |
parent | 3f42a6d26778d764018ccaa31c75bb104d921ab7 (diff) | |
download | cpython-12c484dab8608b5f597a7abbec08fd9d21b4c042.zip cpython-12c484dab8608b5f597a7abbec08fd9d21b4c042.tar.gz cpython-12c484dab8608b5f597a7abbec08fd9d21b4c042.tar.bz2 |
SF patch #783807: Clarify PySequence_Setitem ref counting
(Contributed by Jay T Miller.)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/abstract.tex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex index dd23768..977a17a 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} |