mirror of https://github.com/python/cpython
SF patch #783807: Clarify PySequence_Setitem ref counting
(Contributed by Jay T Miller.)
This commit is contained in:
parent
3f42a6d267
commit
12c484dab8
|
@ -754,7 +754,8 @@ determination.
|
||||||
\begin{cfuncdesc}{int}{PySequence_SetItem}{PyObject *o, int i, PyObject *v}
|
\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
|
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
|
\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}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{int}{PySequence_DelItem}{PyObject *o, int i}
|
\begin{cfuncdesc}{int}{PySequence_DelItem}{PyObject *o, int i}
|
||||||
|
|
Loading…
Reference in New Issue