From: Fred Drake Date: Wed, 4 Mar 1998 03:51:42 +0000 (+0000) Subject: Simplify some of the escaping around ']' in \item[...] markup in light of X-Git-Tag: v1.5.1~516 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fe985fc2865266297168124c0edcf420dea9194;p=python Simplify some of the escaping around ']' in \item[...] markup in light of a fix to LaTeX2HTML from Ross Moore. Yeah! --- diff --git a/Doc/ext.tex b/Doc/ext.tex index a4a7490d1a..9285c1c647 100644 --- a/Doc/ext.tex +++ b/Doc/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 diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index a4a7490d1a..9285c1c647 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