[Python-checkins] python/dist/src/Doc/api newtypes.tex,1.32,1.33

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Thu Jul 15 06:06:01 CEST 2004


Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14504/Doc/api

Modified Files:
	newtypes.tex 
Log Message:
Formalize that the Py_VISIT macro requires that the tp_traverse
implementation it's used in must give its arguments specific names.


Index: newtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/newtypes.tex,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** newtypes.tex	14 Jul 2004 19:08:17 -0000	1.32
--- newtypes.tex	15 Jul 2004 04:05:59 -0000	1.33
***************
*** 1665,1675 ****
  
  To simplify writing \member{tp_traverse} handlers, a
! \cfunction{Py_VISIT()} is provided:
  
  \begin{cfuncdesc}{void}{Py_VISIT}{PyObject *o}
!   Call the \var{visit} for \var{o} with \var{arg}. If \var{visit}
!   returns a non-zero value, then return it.  Using this macro,
!   \member{tp_traverse} handlers look like:
! 
  
  \begin{verbatim}
--- 1665,1676 ----
  
  To simplify writing \member{tp_traverse} handlers, a
! \cfunction{Py_VISIT()} macro is provided.  In order to use this macro,
! the \member{tp_traverse} implementation must name its arguments
! exactly \var{visit} and \var{arg}:
  
  \begin{cfuncdesc}{void}{Py_VISIT}{PyObject *o}
!   Call the \var{visit} callback, with arguments \var{o} and \var{arg}.
!   If \var{visit} returns a non-zero value, then return it.  Using this
!   macro, \member{tp_traverse} handlers look like:
  
  \begin{verbatim}



More information about the Python-checkins mailing list