mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
SF patch #783807: Clarify PySequence_Setitem ref counting
(Contributed by Jay T Miller.)
This commit is contained in:
parent
3f42a6d267
commit
12c484dab8
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue