summaryrefslogtreecommitdiffstats
path: root/Doc/api/concrete.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/api/concrete.tex')
-rw-r--r--Doc/api/concrete.tex33
1 files changed, 14 insertions, 19 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index cd9d8d5..91fd3bb 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -1564,25 +1564,20 @@ They all return \NULL{} or \code{-1} if an exception occurs.
PyObject *right,
int op}
-% This entry could use some polishing - my TeX is too
-% rusty these days... (MAL)
-
- Rich compare two strings and return one of the following:
-\begin{verbatim}
- - NULL in case an exception was raised
- - Py_True or Py_False for successfuly comparisons
- - Py_NotImplemented in case the type combination is unknown
-\end{verbatim}
-
- Note that Py_EQ and Py_NE comparisons can cause a UnicodeWarning in
- case the conversion of the arguments to Unicode fails with a
- UnicodeDecodeError.
-
- Possible values for \var{op}:
-\begin{verbatim}
- Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE
-\end{verbatim}
-
+ Rich compare two unicode strings and return one of the following:
+ \begin{itemize}
+ \item \code{NULL} in case an exception was raised
+ \item \constant{Py_True} or \constant{Py_False} for successful comparisons
+ \item \constant{Py_NotImplemented} in case the type combination is unknown
+ \end{itemize}
+
+ Note that \constant{Py_EQ} and \constant{Py_NE} comparisons can cause a
+ \exception{UnicodeWarning} in case the conversion of the arguments to
+ Unicode fails with a \exception{UnicodeDecodeError}.
+
+ Possible values for \var{op} are
+ \constant{Py_GT}, \constant{Py_GE}, \constant{Py_EQ},
+ \constant{Py_NE}, \constant{Py_LT}, and \constant{Py_LE}.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyUnicode_Format}{PyObject *format,