Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e40c3d

Browse files
committed
Document PyTuple_GET_SIZE(), removing confusing sentence from PyDict_Copy()
description. This fixes SF bug #453111.
1 parent a0f4369 commit 0e40c3d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Doc/api/api.tex

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3590,6 +3590,11 @@ \subsection{Tuple Objects \label{tupleObjects}}
35903590
of that tuple.
35913591
\end{cfuncdesc}
35923592

3593+
\begin{cfuncdesc}{int}{PyTuple_GET_SIZE}{PyObject *p}
3594+
Return the size of the tuple \var{p}, which must be non-\NULL{} and
3595+
point to a tuple; no error checking is performed.
3596+
\end{cfuncdesc}
3597+
35933598
\begin{cfuncdesc}{PyObject*}{PyTuple_GetItem}{PyObject *p, int pos}
35943599
Returns the object at position \var{pos} in the tuple pointed
35953600
to by \var{p}. If \var{pos} is out of bounds, returns \NULL{} and
@@ -3780,8 +3785,8 @@ \subsection{Dictionary Objects \label{dictObjects}}
37803785
\end{cfuncdesc}
37813786

37823787
\begin{cfuncdesc}{PyObject*}{PyDict_Copy}{PyObject *p}
3783-
Returns a new dictionary that contains the same key-value pairs as p.
3784-
Empties an existing dictionary of all key-value pairs.
3788+
Returns a new dictionary that contains the same key-value pairs as
3789+
\var{p}.
37853790
\versionadded{1.6}
37863791
\end{cfuncdesc}
37873792

0 commit comments

Comments
 (0)