summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-08-09 04:37:14 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-08-09 04:37:14 (GMT)
commit12c484dab8608b5f597a7abbec08fd9d21b4c042 (patch)
treef5d5b397eed51d333d5280b4d87d76d282e927f1 /Doc
parent3f42a6d26778d764018ccaa31c75bb104d921ab7 (diff)
downloadcpython-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.tex3
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}