Commit 99181ac6 authored by Fred Drake's avatar Fred Drake

Add an index entry for the discussion of PyEval_CallObject().

This is related to SF bug #485165.
parent ea4d2c02
...@@ -509,14 +509,15 @@ the presence of \NULL{} pointers (but note that \var{temp} will not be ...@@ -509,14 +509,15 @@ the presence of \NULL{} pointers (but note that \var{temp} will not be
section~\ref{refcounts}, ``Reference Counts.'' section~\ref{refcounts}, ``Reference Counts.''
Later, when it is time to call the function, you call the C function Later, when it is time to call the function, you call the C function
\cfunction{PyEval_CallObject()}. This function has two arguments, both \cfunction{PyEval_CallObject()}.\ttindex{PyEval_CallObject()} This
pointers to arbitrary Python objects: the Python function, and the function has two arguments, both pointers to arbitrary Python objects:
argument list. The argument list must always be a tuple object, whose the Python function, and the argument list. The argument list must
length is the number of arguments. To call the Python function with always be a tuple object, whose length is the number of arguments. To
no arguments, pass an empty tuple; to call it with one argument, pass call the Python function with no arguments, pass an empty tuple; to
a singleton tuple. \cfunction{Py_BuildValue()} returns a tuple when its call it with one argument, pass a singleton tuple.
format string consists of zero or more format codes between \cfunction{Py_BuildValue()} returns a tuple when its format string
parentheses. For example: consists of zero or more format codes between parentheses. For
example:
\begin{verbatim} \begin{verbatim}
int arg; int arg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment