[Python-checkins] python/dist/src/Doc/ext newtypes.tex,1.38,1.39
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Thu Jul 15 06:23:15 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/ext
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16709/Doc/ext
Modified Files:
newtypes.tex
Log Message:
s/it's/its/, s/NULL/NULL{}/, where appropriate.
Index: newtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/newtypes.tex,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** newtypes.tex 15 Jul 2004 04:05:59 -0000 1.38
--- newtypes.tex 15 Jul 2004 04:23:13 -0000 1.39
***************
*** 762,766 ****
With these changes, we can assure that the \member{first} and
! \member{last} members are never NULL so we can remove checks for \NULL
values in almost all cases. This means that most of the
\cfunction{Py_XDECREF()} calls can be converted to \cfunction{Py_DECREF()}
--- 762,766 ----
With these changes, we can assure that the \member{first} and
! \member{last} members are never \NULL{} so we can remove checks for \NULL{}
values in almost all cases. This means that most of the
\cfunction{Py_XDECREF()} calls can be converted to \cfunction{Py_DECREF()}
***************
*** 892,897 ****
Notice the use of a temporary variable in \cfunction{Noddy_clear()}.
! We use the temporary variable so that we can set each member to \NULL
! before decrementing it's reference count. We do this because, as was
discussed earlier, if the reference count drops to zero, we might
cause code to run that calls back into the object. In addition,
--- 892,897 ----
Notice the use of a temporary variable in \cfunction{Noddy_clear()}.
! We use the temporary variable so that we can set each member to \NULL{}
! before decrementing its reference count. We do this because, as was
discussed earlier, if the reference count drops to zero, we might
cause code to run that calls back into the object. In addition,
***************
*** 900,904 ****
collection is run, our \member{tp_traverse} handler could get called.
We can't take a chance of having \cfunction{Noddy_traverse()} called
! when a member's reference count has dropped to zero and it's value
hasn't been set to \NULL.
--- 900,904 ----
collection is run, our \member{tp_traverse} handler could get called.
We can't take a chance of having \cfunction{Noddy_traverse()} called
! when a member's reference count has dropped to zero and its value
hasn't been set to \NULL.
More information about the Python-checkins
mailing list