@@ -509,14 +509,15 @@ \section{Calling Python Functions from C
509509section~\ref {refcounts }, `` Reference Counts.''
510510
511511Later, when it is time to call the function, you call the C function
512- \cfunction {PyEval_CallObject()}. This function has two arguments, both
513- pointers to arbitrary Python objects: the Python function, and the
514- argument list. The argument list must always be a tuple object, whose
515- length is the number of arguments. To call the Python function with
516- no arguments, pass an empty tuple; to call it with one argument, pass
517- a singleton tuple. \cfunction {Py_BuildValue()} returns a tuple when its
518- format string consists of zero or more format codes between
519- parentheses. For example:
512+ \cfunction {PyEval_CallObject()}.\ttindex {PyEval_CallObject()} This
513+ function has two arguments, both pointers to arbitrary Python objects:
514+ the Python function, and the argument list. The argument list must
515+ always be a tuple object, whose length is the number of arguments. To
516+ call the Python function with no arguments, pass an empty tuple; to
517+ call it with one argument, pass a singleton tuple.
518+ \cfunction {Py_BuildValue()} returns a tuple when its format string
519+ consists of zero or more format codes between parentheses. For
520+ example:
520521
521522\begin {verbatim }
522523 int arg;
0 commit comments