]> granicus.if.org Git - python/commitdiff
Add an index entry for the discussion of PyEval_CallObject().
authorFred Drake <fdrake@acm.org>
Thu, 29 Nov 2001 05:02:34 +0000 (05:02 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 29 Nov 2001 05:02:34 +0000 (05:02 +0000)
This is related to SF bug #485165.

Doc/ext/extending.tex

index 22623e92cb1401c7205a178595ef8d1a5fa7d1ea..6cd1137fd9657018ecac3b45fc74554777dd2ff7 100644 (file)
@@ -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;