summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-12 03:58:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-12 03:58:14 (GMT)
commit98fcaaf48e8ea2517dc505aba5bb8efe4182bc57 (patch)
treef81ab4dd2feceed73b741bcf125e99303deb0dac /Doc
parent34fed3a3b7f689ae40a13232f5c42ac8ad1a9738 (diff)
downloadcpython-98fcaaf48e8ea2517dc505aba5bb8efe4182bc57.zip
cpython-98fcaaf48e8ea2517dc505aba5bb8efe4182bc57.tar.gz
cpython-98fcaaf48e8ea2517dc505aba5bb8efe4182bc57.tar.bz2
SF bug #1323739, C API doc for PySequence_Tuple duplicated
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/abstract.tex14
1 files changed, 5 insertions, 9 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex
index 996d0ea..156583c 100644
--- a/Doc/api/abstract.tex
+++ b/Doc/api/abstract.tex
@@ -778,12 +778,6 @@ determination.
the Python statement \samp{del \var{o}[\var{i1}:\var{i2}]}.
\end{cfuncdesc}
-\begin{cfuncdesc}{PyObject*}{PySequence_Tuple}{PyObject *o}
- Returns the \var{o} as a tuple on success, and \NULL{} on failure.
- This is equivalent to the Python expression \samp{tuple(\var{o})}.
- \bifuncindex{tuple}
-\end{cfuncdesc}
-
\begin{cfuncdesc}{int}{PySequence_Count}{PyObject *o, PyObject *value}
Return the number of occurrences of \var{value} in \var{o}, that is,
return the number of keys for which \code{\var{o}[\var{key}] ==
@@ -811,9 +805,11 @@ determination.
\begin{cfuncdesc}{PyObject*}{PySequence_Tuple}{PyObject *o}
Return a tuple object with the same contents as the arbitrary
- sequence \var{o}. If \var{o} is a tuple, a new reference will be
- returned, otherwise a tuple will be constructed with the appropriate
- contents.
+ sequence \var{o} or \NULL{} on failure. If \var{o} is a tuple,
+ a new reference will be returned, otherwise a tuple will be
+ constructed with the appropriate contents. This is equivalent
+ to the Python expression \samp{tuple(\var{o})}.
+ \bifuncindex{tuple}
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PySequence_Fast}{PyObject *o, const char *m}