[Python-checkins] CVS: python/dist/src/Doc/ext ext.tex,1.99,1.100

Fred L. Drake fdrake@users.sourceforge.net
Fri, 20 Jul 2001 13:59:52 -0700


Update of /cvsroot/python/python/dist/src/Doc/ext
In directory usw-pr-cvs1:/tmp/cvs-serv24407/ext

Modified Files:
	ext.tex 
Log Message:

Corrected a section reference (title was wrong).

Added information on the return values of PyArg_ParseTuple() and
PyArg_ParseTupleAndKeywords().


Index: ext.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/ext.tex,v
retrieving revision 1.99
retrieving revision 1.100
diff -C2 -r1.99 -r1.100
*** ext.tex	2001/07/14 02:27:22	1.99
--- ext.tex	2001/07/20 20:59:49	1.100
***************
*** 548,553 ****
  \ref{methodTable}, ``The Module's Method Table and Initialization
  Function.''  The \cfunction{PyArg_ParseTuple()} function and its
! arguments are documented in section \ref{parseTuple}, ``Format Strings
! for \cfunction{PyArg_ParseTuple()}.''
  
  The macros \cfunction{Py_XINCREF()} and \cfunction{Py_XDECREF()}
--- 548,553 ----
  \ref{methodTable}, ``The Module's Method Table and Initialization
  Function.''  The \cfunction{PyArg_ParseTuple()} function and its
! arguments are documented in section \ref{parseTuple}, ``Extracting
! Parameters in Extension Functions.''
  
  The macros \cfunction{Py_XINCREF()} and \cfunction{Py_XDECREF()}
***************
*** 652,656 ****
  determined by the format string.  For the conversion to succeed, the
  \var{arg} object must match the format and the format must be
! exhausted.
  
  Note that while \cfunction{PyArg_ParseTuple()} checks that the Python
--- 652,657 ----
  determined by the format string.  For the conversion to succeed, the
  \var{arg} object must match the format and the format must be
! exhausted.  On success, \cfunction{PyArg_ParseTuple()} returns true,
! otherwise it returns false and raises an appropriate exception.
  
  Note that while \cfunction{PyArg_ParseTuple()} checks that the Python
***************
*** 987,994 ****
  The \var{arg} and \var{format} parameters are identical to those of the
  \cfunction{PyArg_ParseTuple()} function.  The \var{kwdict} parameter
! is the dictionary of keywords received as the third parameter from the 
  Python runtime.  The \var{kwlist} parameter is a \NULL{}-terminated
  list of strings which identify the parameters; the names are matched
! with the type information from \var{format} from left to right.
  
  \strong{Note:}  Nested tuples cannot be parsed when using keyword
--- 988,997 ----
  The \var{arg} and \var{format} parameters are identical to those of the
  \cfunction{PyArg_ParseTuple()} function.  The \var{kwdict} parameter
! is the dictionary of keywords received as the third parameter from the
  Python runtime.  The \var{kwlist} parameter is a \NULL{}-terminated
  list of strings which identify the parameters; the names are matched
! with the type information from \var{format} from left to right.  On
! success, \cfunction{PyArg_ParseTupleAndKeywords()} returns true,
! otherwise it returns false and raises an appropriate exception.
  
  \strong{Note:}  Nested tuples cannot be parsed when using keyword