]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clean up descriptions of PyObject_RichCompare() and PyObject_RichCompareBool()
authorFred Drake <fdrake@acm.org>
Fri, 14 Jun 2002 14:36:23 +0000 (14:36 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 14 Jun 2002 14:36:23 +0000 (14:36 +0000)
based on comments from David Abrahams.
Added refcount information for these functions.

Doc/api/abstract.tex
Doc/api/refcounts.dat

index 893b6495e25467b659a0a0b27ac88f4a8c614aab..ed7e8ac9b7c9eee439e7f7fd6420bc8ebb3b7a66 100644 (file)
@@ -82,9 +82,9 @@ for which they do not apply, they will raise a Python exception.
 
 
 \begin{cfuncdesc}{PyObject*}{PyObject_RichCompare}{PyObject *o1,
-                                                   PyObject *o2, int op}
+                                                   PyObject *o2, int opid}
   Compare the values of \var{o1} and \var{o2} using the operation
-  specified by \var{op}, which must be one of 
+  specified by \var{opid}, which must be one of
   \constant{Py_LT},
   \constant{Py_LE},
   \constant{Py_EQ},
@@ -97,15 +97,15 @@ for which they do not apply, they will raise a Python exception.
   \code{!=},
   \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
+  \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 op}
+                                                 PyObject *o2, int opid}
   Compare the values of \var{o1} and \var{o2} using the operation
-  specified by \var{op}, which must be one of 
+  specified by \var{opid}, which must be one of
   \constant{Py_LT},
   \constant{Py_LE},
   \constant{Py_EQ},
@@ -119,8 +119,8 @@ for which they do not apply, they will raise a Python exception.
   \code{>}, or
   \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}.
+  Python expression \samp{\var{o1} op \var{o2}}, where
+  \code{op} is the operator corresponding to \var{opid}.
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{int}{PyObject_Cmp}{PyObject *o1, PyObject *o2, int *result}
index 28c795a13961330fe47ada85be61bc409fc0a3f0..ded4b15fd144957a3b9519e03f84120e33c28a43 100644 (file)
@@ -843,6 +843,16 @@ PyObject_Print:int:flags::
 PyObject_Repr:PyObject*::+1:
 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:
 PyObject_SetAttr:PyObject*:attr_name:0: