summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ext/ext.tex2
-rw-r--r--Doc/lib/libstdtypes.tex4
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index 33d6492..04ffcbf 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -694,7 +694,7 @@ second is the address of a C variable (of arbitrary type), converted
to \ctype{void *}. The \var{converter} function in turn is called as
follows:
-\code{\var{status} = \var{converter}(\var{object}, \var{address});}
+\var{status}\code{ = }\var{converter}\code{(}\var{object}, \var{address}\code{);}
where \var{object} is the Python object to be converted and
\var{address} is the \ctype{void *} argument that was passed to
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index f24da0c..517cc88 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -190,8 +190,8 @@ integer is smaller than long integer is smaller than floating point is
smaller than complex.
Comparisons between numbers of mixed type use the same rule.\footnote{
As a consequence, the list \code{[1, 2]} is considered equal
- to \code{[1.0, 2.0]}, and similar for tuples.}
-The functions \function{int()}, \function{long()}, \function{float()},
+ to \code{[1.0, 2.0]}, and similar for tuples.
+} The functions \function{int()}, \function{long()}, \function{float()},
and \function{complex()} can be used
to coerce numbers to a specific type.
\index{arithmetic}