[Python-checkins] python/dist/src/Doc/api newtypes.tex,1.19,1.20

mwh@users.sourceforge.net mwh@users.sourceforge.net
2003年2月06日 10:37:14 -0800


Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1:/tmp/cvs-serv11136/api
Modified Files:
	newtypes.tex 
Log Message:
Correct lie about METH_NOARGS functions.
Backport candidate.
Index: newtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/newtypes.tex,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** newtypes.tex	31 Jan 2003 05:44:25 -0000	1.19
--- newtypes.tex	6 Feb 2003 18:37:11 -0000	1.20
***************
*** 245,249 ****
 (often called \var{args}) is a tuple object representing all
 arguments. This parameter is typically processed using
! \cfunction{PyArg_ParseTuple()}.
 \end{datadesc}
 
--- 245,249 ----
 (often called \var{args}) is a tuple object representing all
 arguments. This parameter is typically processed using
! \cfunction{PyArg_ParseTuple()} or \cfunction{PyArg_UnpackTuple}.
 \end{datadesc}
 
***************
*** 260,267 ****
 Methods without parameters don't need to check whether arguments are
 given if they are listed with the \constant{METH_NOARGS} flag. They
! need to be of type \ctype{PyNoArgsFunction}: they expect a single
! single \ctype{PyObject*} as a parameter. When used with object
! methods, this parameter is typically named \code{self} and will hold
! a reference to the object instance.
 \end{datadesc}
 
--- 260,267 ----
 Methods without parameters don't need to check whether arguments are
 given if they are listed with the \constant{METH_NOARGS} flag. They
! need to be of type \ctype{PyCFunction}. When used with object
! methods, the first parameter is typically named \code{self} and will
! hold a reference to the object instance. In all cases the second
! parameter will be \NULL.
 \end{datadesc}
 

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