Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99181ac

Browse files
committed
Add an index entry for the discussion of PyEval_CallObject().
This is related to SF bug #485165.
1 parent ea4d2c0 commit 99181ac

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Doc/ext/extending.tex

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,15 @@ \section{Calling Python Functions from C
509509
section~\ref{refcounts}, ``Reference Counts.''
510510

511511
Later, 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

Comments
 (0)