summaryrefslogtreecommitdiffstats
path: root/Doc/ext
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-03-04 03:51:42 (GMT)
committerFred Drake <fdrake@acm.org>1998-03-04 03:51:42 (GMT)
commit3fe985fc2865266297168124c0edcf420dea9194 (patch)
tree913f359099641067c950abedd5cdd8a2d50f5ae4 /Doc/ext
parent12577abe2e0577dcd6e1d7180b29c28bc14eafb6 (diff)
downloadcpython-3fe985fc2865266297168124c0edcf420dea9194.zip
cpython-3fe985fc2865266297168124c0edcf420dea9194.tar.gz
cpython-3fe985fc2865266297168124c0edcf420dea9194.tar.bz2
Simplify some of the escaping around ']' in \item[...] markup in light of
a fix to LaTeX2HTML from Ross Moore. Yeah!
Diffstat (limited to 'Doc/ext')
-rw-r--r--Doc/ext/ext.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index a4a7490..9285c1c 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -591,7 +591,7 @@ operator to pass a variable's address.)
\begin{description}
-\item[\samp{s} (string) [char *{]}]
+\item[\samp{s} (string) {[char *]}]
Convert a Python string to a \C{} pointer to a character string. You
must not provide storage for the string itself; a pointer to an
existing string is stored into the character pointer variable whose
@@ -642,7 +642,7 @@ The \C{} program thus receives the actual object that was passed. The
object's reference count is not increased. The pointer stored is not
\NULL{}.
-\item[\samp{O!} (object) {[\var{typeobject}, PyObject *{]}}]
+\item[\samp{O!} (object) {[\var{typeobject}, PyObject *]}]
Store a Python object in a \C{} object pointer. This is similar to
\samp{O}, but takes two \C{} arguments: the first is the address of a
Python type object, the second is the address of the \C{} variable (of
@@ -650,7 +650,7 @@ type \ctype{PyObject *}) into which the object pointer is stored.
If the Python object does not have the required type, a
\exception{TypeError} exception is raised.
-\item[\samp{O\&} (object) {[\var{converter}, \var{anything}{]}}]
+\item[\samp{O\&} (object) {[\var{converter}, \var{anything}]}]
Convert a Python object to a \C{} variable through a \var{converter}
function. This takes two arguments: the first is a function, the
second is the address of a \C{} variable (of arbitrary type), converted
@@ -671,7 +671,7 @@ Like \samp{O} but requires that the Python object is a string object.
Raises a \exception{TypeError} exception if the object is not a string
object. The \C{} variable may also be declared as \ctype{PyObject *}.
-\item[\samp{(\var{items})} (tuple) {[\var{matching-items}{]}}]
+\item[\samp{(\var{items})} (tuple) {[\var{matching-items}]}]
The object must be a Python tuple whose length is the number of format
units in \var{items}. The \C{} arguments must correspond to the
individual format units in \var{items}. Format units for tuples may