summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-20 16:48:59 (GMT)
committerFred Drake <fdrake@acm.org>2001-08-20 16:48:59 (GMT)
commit0e40c3d01224a6fbde42a2f614bc986535cefeb1 (patch)
treeae3970cb4e73bfde74079657c80af55ba0bb386a /Doc
parenta0f4369f5aa27a315dd381891e1f81123e5e8de2 (diff)
downloadcpython-0e40c3d01224a6fbde42a2f614bc986535cefeb1.zip
cpython-0e40c3d01224a6fbde42a2f614bc986535cefeb1.tar.gz
cpython-0e40c3d01224a6fbde42a2f614bc986535cefeb1.tar.bz2
Document PyTuple_GET_SIZE(), removing confusing sentence from PyDict_Copy()
description. This fixes SF bug #453111.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/api.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index 894e5b6..c5f351c 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -3590,6 +3590,11 @@ Takes a pointer to a tuple object, and returns the size
of that tuple.
\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}
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
@@ -3780,8 +3785,8 @@ Empties an existing dictionary of all key-value pairs.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyDict_Copy}{PyObject *p}
-Returns a new dictionary that contains the same key-value pairs as p.
-Empties an existing dictionary of all key-value pairs.
+Returns a new dictionary that contains the same key-value pairs as
+\var{p}.
\versionadded{1.6}
\end{cfuncdesc}