@@ -761,7 +761,7 @@ \subsection{Providing finer control over data attributes}
761761\end {verbatim }
762762
763763With these changes, we can assure that the \member {first} and
764- \member {last} members are never NULL so we can remove checks for \NULL
764+ \member {last} members are never \ NULL{} so we can remove checks for \NULL {}
765765values in almost all cases. This means that most of the
766766\cfunction {Py_XDECREF()} calls can be converted to \cfunction {Py_DECREF()}
767767calls. The only place we can't change these calls is in the
@@ -891,15 +891,15 @@ \subsection{Supporting cyclic garbage collection}
891891\end {verbatim }
892892
893893Notice the use of a temporary variable in \cfunction {Noddy_clear()}.
894- We use the temporary variable so that we can set each member to \NULL
895- before decrementing it's reference count. We do this because, as was
894+ We use the temporary variable so that we can set each member to \NULL {}
895+ before decrementing its reference count. We do this because, as was
896896discussed earlier, if the reference count drops to zero, we might
897897cause code to run that calls back into the object. In addition,
898898because we now support garbage collection, we also have to worry about
899899code being run that triggers garbage collection. If garbage
900900collection is run, our \member {tp_traverse} handler could get called.
901901We can't take a chance of having \cfunction {Noddy_traverse()} called
902- when a member's reference count has dropped to zero and it's value
902+ when a member's reference count has dropped to zero and its value
903903hasn't been set to \NULL .
904904
905905Python 2.4 and higher provide a \cfunction {Py_CLEAR()} that automates
0 commit comments