[Python-checkins] python/dist/src/Doc/api abstract.tex,1.16,1.17 refcounts.dat,1.40,1.41
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Fri, 14 Jun 2002 07:35:58 -0700
Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv10819/api
Modified Files:
abstract.tex refcounts.dat
Log Message:
Clean up descriptions of PyObject_RichCompare() and PyObject_RichCompareBool()
based on comments from David Abrahams.
Added refcount information for these functions.
Index: abstract.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/abstract.tex,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** abstract.tex 13 Jun 2002 11:51:48 -0000 1.16
--- abstract.tex 14 Jun 2002 14:35:56 -0000 1.17
***************
*** 83,89 ****
\begin{cfuncdesc}{PyObject*}{PyObject_RichCompare}{PyObject *o1,
! PyObject *o2, int op}
Compare the values of \var{o1} and \var{o2} using the operation
! specified by \var{op}, which must be one of
\constant{Py_LT},
\constant{Py_LE},
--- 83,89 ----
\begin{cfuncdesc}{PyObject*}{PyObject_RichCompare}{PyObject *o1,
! PyObject *o2, int opid}
Compare the values of \var{o1} and \var{o2} using the operation
! specified by \var{opid}, which must be one of
\constant{Py_LT},
\constant{Py_LE},
***************
*** 98,110 ****
\code{>}, or
\code{>=} respectively. This is the equivalent of the Python expression
! \samp{\var{o1} \emph{op} \var{o2}}, where \emph{op} is the operator
! corresponding to \var{op}. Returns the value of the comparison on
success, or \NULL{} on failure.
\end{cfuncdesc}
\begin{cfuncdesc}{int}{PyObject_RichCompareBool}{PyObject *o1,
! PyObject *o2, int op}
Compare the values of \var{o1} and \var{o2} using the operation
! specified by \var{op}, which must be one of
\constant{Py_LT},
\constant{Py_LE},
--- 98,110 ----
\code{>}, or
\code{>=} respectively. This is the equivalent of the Python expression
! \samp{\var{o1} op \var{o2}}, where \code{op} is the operator
! corresponding to \var{opid}. Returns the value of the comparison on
success, or \NULL{} on failure.
\end{cfuncdesc}
\begin{cfuncdesc}{int}{PyObject_RichCompareBool}{PyObject *o1,
! PyObject *o2, int opid}
Compare the values of \var{o1} and \var{o2} using the operation
! specified by \var{opid}, which must be one of
\constant{Py_LT},
\constant{Py_LE},
***************
*** 120,125 ****
\code{>=} respectively. Returns \code{-1} on error, \code{0} if the
result is false, \code{1} otherwise. This is the equivalent of the
! Python expression \samp{\var{o1} \emph{op} \var{o2}}, where
! \emph{op} is the operator corresponding to \var{op}.
\end{cfuncdesc}
--- 120,125 ----
\code{>=} respectively. Returns \code{-1} on error, \code{0} if the
result is false, \code{1} otherwise. This is the equivalent of the
! Python expression \samp{\var{o1} op \var{o2}}, where
! \code{op} is the operator corresponding to \var{opid}.
\end{cfuncdesc}
Index: refcounts.dat
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/refcounts.dat,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** refcounts.dat 23 May 2002 16:03:16 -0000 1.40
--- refcounts.dat 14 Jun 2002 14:35:56 -0000 1.41
***************
*** 844,847 ****
--- 844,857 ----
PyObject_Repr:PyObject*:o:0:
+ PyObject_RichCompare:PyObject*::+1:
+ PyObject_RichCompare:PyObject*:o1:0:
+ PyObject_RichCompare:PyObject*:o2:0:
+ PyObject_RichCompare:int:opid::
+
+ PyObject_RichCompareBool:int:::
+ PyObject_RichCompareBool:PyObject*:o1:0:
+ PyObject_RichCompareBool:PyObject*:o2:0:
+ PyObject_RichCompareBool:int:opid::
+
PyObject_SetAttr:int:::
PyObject_SetAttr:PyObject*:o:0: