[Python-checkins] CVS: python/dist/src/Doc/ext extending.tex,1.6,1.7

Fred L. Drake fdrake@users.sourceforge.net
2001年11月28日 21:02:36 -0800


Update of /cvsroot/python/python/dist/src/Doc/ext
In directory usw-pr-cvs1:/tmp/cvs-serv9126/ext
Modified Files:
	extending.tex 
Log Message:
Add an index entry for the discussion of PyEval_CallObject().
This is related to SF bug #485165.
Index: extending.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/extending.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** extending.tex	2001年11月28日 07:26:15	1.6
--- extending.tex	2001年11月29日 05:02:34	1.7
***************
*** 510,521 ****
 
 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:
 
 \begin{verbatim}
--- 510,522 ----
 
 Later, when it is time to call the function, you call the C function
! \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}

AltStyle によって変換されたページ (->オリジナル) /