[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.31,1.32

akuchling@users.sourceforge.net akuchling@users.sourceforge.net
Thu, 11 Jul 2002 12:27:49 -0700


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

Modified Files:
	whatsnew23.tex 
Log Message:
[Bug #567607] Suggest METH_NOARGS to replace PyArg_NoArgs

Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** whatsnew23.tex	3 Jul 2002 12:02:01 -0000	1.31
--- whatsnew23.tex	11 Jul 2002 19:27:46 -0000	1.32
***************
*** 654,660 ****
  
  \item The \cfunction{PyArg_NoArgs()} macro is now deprecated, and code
! that
! uses it should be changed to use \code{PyArg_ParseTuple(args, "")}
! instead.
  
  \item A new function, \cfunction{PyObject_DelItemString(\var{mapping},
--- 654,664 ----
  
  \item The \cfunction{PyArg_NoArgs()} macro is now deprecated, and code
! that uses it should be changed.  For Python 2.2 and later, the method
! definition table can specify the
! \constant{METH_NOARGS} flag, signalling that there are no arguments, and 
! the argument checking can then be removed.  If compatibility with
! pre-2.2 versions of Python is important, the code could use
! \code{PyArg_ParseTuple(args, "")} instead, but this will be slower 
! than using \constant{METH_NOARGS}.
  
  \item A new function, \cfunction{PyObject_DelItemString(\var{mapping},
***************
*** 722,727 ****
  suggestions, corrections and assistance with various drafts of this
  article: Michael Chermside, Scott David Daniels, Fred~L. Drake, Jr.,
! Michael Hudson, Detlef Lannert, Andrew MacIntyre, Gustavo Niemeyer,
! Neal Norwitz.
  
  \end{document}
--- 726,731 ----
  suggestions, corrections and assistance with various drafts of this
  article: Michael Chermside, Scott David Daniels, Fred~L. Drake, Jr.,
! Michael Hudson, Detlef Lannert, Martin von L\"owis, Andrew MacIntyre,
! Gustavo Niemeyer, Neal Norwitz.
  
  \end{document}