summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-29 05:02:34 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-29 05:02:34 (GMT)
commit99181ac64ef7876edecc328d788b97174cd73128 (patch)
tree1b44d4b722003f6c1a0b879bd75dcb9055f1db37
parentea4d2c0241f3f32a7ff0fdc0b1b5c8e4bb58e445 (diff)
downloadcpython-99181ac64ef7876edecc328d788b97174cd73128.zip
cpython-99181ac64ef7876edecc328d788b97174cd73128.tar.gz
cpython-99181ac64ef7876edecc328d788b97174cd73128.tar.bz2
Add an index entry for the discussion of PyEval_CallObject().
This is related to SF bug #485165.
-rw-r--r--Doc/ext/extending.tex17
1 files changed, 9 insertions, 8 deletions
diff --git a/Doc/ext/extending.tex b/Doc/ext/extending.tex
index 22623e9..6cd1137 100644
--- a/Doc/ext/extending.tex
+++ b/Doc/ext/extending.tex
@@ -509,14 +509,15 @@ the presence of \NULL{} pointers (but note that \var{temp} will not be
section~\ref{refcounts}, ``Reference Counts.''
Later, when it is time to call the function, you call the C function
-\cfunction{PyEval_CallObject()}. This function has two arguments, both
-pointers to arbitrary Python objects: the Python function, and the
-argument list. The argument list must always be a tuple object, whose
-length is the number of arguments. To call the Python function with
-no arguments, pass an empty tuple; to call it with one argument, pass
-a singleton tuple. \cfunction{Py_BuildValue()} returns a tuple when its
-format string consists of zero or more format codes between
-parentheses. For example:
+\cfunction{PyEval_CallObject()}.\ttindex{PyEval_CallObject()} This
+function has two arguments, both pointers to arbitrary Python objects:
+the Python function, and the argument list. The argument list must
+always be a tuple object, whose length is the number of arguments. To
+call the Python function with no arguments, pass an empty tuple; to
+call it with one argument, pass a singleton tuple.
+\cfunction{Py_BuildValue()} returns a tuple when its format string
+consists of zero or more format codes between parentheses. For
+example:
\begin{verbatim}
int arg;