Document PyTuple_GET_SIZE(), removing confusing sentence from PyDict_Copy()
description. This fixes SF bug #453111.
This commit is contained in:
parent
a0f4369f5a
commit
0e40c3d012
|
@ -3590,6 +3590,11 @@ Takes a pointer to a tuple object, and returns the size
|
||||||
of that tuple.
|
of that tuple.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
|
\begin{cfuncdesc}{int}{PyTuple_GET_SIZE}{PyObject *p}
|
||||||
|
Return the size of the tuple \var{p}, which must be non-\NULL{} and
|
||||||
|
point to a tuple; no error checking is performed.
|
||||||
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyTuple_GetItem}{PyObject *p, int pos}
|
\begin{cfuncdesc}{PyObject*}{PyTuple_GetItem}{PyObject *p, int pos}
|
||||||
Returns the object at position \var{pos} in the tuple pointed
|
Returns the object at position \var{pos} in the tuple pointed
|
||||||
to by \var{p}. If \var{pos} is out of bounds, returns \NULL{} and
|
to by \var{p}. If \var{pos} is out of bounds, returns \NULL{} and
|
||||||
|
@ -3780,8 +3785,8 @@ Empties an existing dictionary of all key-value pairs.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{PyObject*}{PyDict_Copy}{PyObject *p}
|
\begin{cfuncdesc}{PyObject*}{PyDict_Copy}{PyObject *p}
|
||||||
Returns a new dictionary that contains the same key-value pairs as p.
|
Returns a new dictionary that contains the same key-value pairs as
|
||||||
Empties an existing dictionary of all key-value pairs.
|
\var{p}.
|
||||||
\versionadded{1.6}
|
\versionadded{1.6}
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue