Commit f0b6d736 authored by Guido van Rossum's avatar Guido van Rossum

Get rid of math mode in some places.

parent 8655224a
...@@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}. ...@@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{exp}{x} \begin{funcdesc}{exp}{x}
Return the exponential value $\mbox{e}^x$. Return \code{e**\var{x}}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{fabs}{x} \begin{funcdesc}{fabs}{x}
...@@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}. ...@@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{ldexp}{x, i} \begin{funcdesc}{ldexp}{x, i}
Return $x {\times} 2^i$. Return \code{\var{x} * (2**\var{i})}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{modf}{x} \begin{funcdesc}{modf}{x}
...@@ -71,7 +71,7 @@ carry the sign of \var{x}. ...@@ -71,7 +71,7 @@ carry the sign of \var{x}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{pow}{x, y} \begin{funcdesc}{pow}{x, y}
Return $x^y$. Return \code{\var{x}**\var{y}}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{sin}{x} \begin{funcdesc}{sin}{x}
......
...@@ -122,7 +122,7 @@ One more support function is also defined: ...@@ -122,7 +122,7 @@ One more support function is also defined:
Return a string representation of \var{object}, protected against Return a string representation of \var{object}, protected against
recursive data structures. If the representation of \var{object} recursive data structures. If the representation of \var{object}
exposes a recursive entry, the recursive reference will be represented exposes a recursive entry, the recursive reference will be represented
as \samp{$<$Recursion on \var{typename} with id=\var{number}$>$}. The as \code{<Recursion on \var{typename} with id=\var{number}>}. The
representation is not otherwise formatted. representation is not otherwise formatted.
\begin{verbatim} \begin{verbatim}
......
...@@ -176,7 +176,7 @@ determines how often the interpreter checks for periodic things such ...@@ -176,7 +176,7 @@ determines how often the interpreter checks for periodic things such
as thread switches and signal handlers. The default is 10, meaning as thread switches and signal handlers. The default is 10, meaning
the check is performed every 10 Python virtual instructions. Setting the check is performed every 10 Python virtual instructions. Setting
it to a larger value may increase performance for programs using it to a larger value may increase performance for programs using
threads. Setting it to a value $\leq 0$ checks every virtual instruction, threads. Setting it to a value \code{<=} 0 checks every virtual instruction,
maximizing responsiveness as well as overhead. maximizing responsiveness as well as overhead.
\end{funcdesc} \end{funcdesc}
......
...@@ -48,8 +48,8 @@ integers: year (e.g.\ 1993), month (1--12), day (1--31), hour ...@@ -48,8 +48,8 @@ integers: year (e.g.\ 1993), month (1--12), day (1--31), hour
(0--23), minute (0--59), second (0--59), weekday (0--6, monday is 0), (0--23), minute (0--59), second (0--59), weekday (0--6, monday is 0),
Julian day (1--366) and daylight savings flag (-1, 0 or 1). Julian day (1--366) and daylight savings flag (-1, 0 or 1).
Note that unlike the C structure, the month value is a range of 1-12, not Note that unlike the C structure, the month value is a range of 1-12, not
0-11. A year value of $<$ 100 will typically be silently converted to 0-11. A year value less than 100 will typically be silently converted to
1900 $+$ year value. A -1 argument as daylight savings flag, passed to 1900 plus the year value. A -1 argument as daylight savings flag, passed to
\code{mktime()} will usually result in the correct daylight savings \code{mktime()} will usually result in the correct daylight savings
state to be filled in. state to be filled in.
......
...@@ -45,7 +45,7 @@ yet possible to access the parameters of a voice. ...@@ -45,7 +45,7 @@ yet possible to access the parameters of a voice.
\renewcommand{\indexsubitem}{(voice object method)} \renewcommand{\indexsubitem}{(voice object method)}
\begin{funcdesc}{GetGender}{} \begin{funcdesc}{GetGender}{}
Return the gender of the voice:\ 0 for male, 1 for female and $-1$ for neuter. Return the gender of the voice: 0 for male, 1 for female and -1 for neuter.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{NewChannel}{} \begin{funcdesc}{NewChannel}{}
......
...@@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream. ...@@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream.
\renewcommand{\indexsubitem}{(UDP stream method)} \renewcommand{\indexsubitem}{(UDP stream method)}
\begin{funcdesc}{Read}{timeout} \begin{funcdesc}{Read}{timeout}
Read a datagram, waiting at most \var{timeout} seconds ($-1$ is Read a datagram, waiting at most \var{timeout} seconds (-1 is
infinite). Return the data. infinite). Return the data.
\end{funcdesc} \end{funcdesc}
......
...@@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}. ...@@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{exp}{x} \begin{funcdesc}{exp}{x}
Return the exponential value $\mbox{e}^x$. Return \code{e**\var{x}}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{fabs}{x} \begin{funcdesc}{fabs}{x}
...@@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}. ...@@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{ldexp}{x, i} \begin{funcdesc}{ldexp}{x, i}
Return $x {\times} 2^i$. Return \code{\var{x} * (2**\var{i})}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{modf}{x} \begin{funcdesc}{modf}{x}
...@@ -71,7 +71,7 @@ carry the sign of \var{x}. ...@@ -71,7 +71,7 @@ carry the sign of \var{x}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{pow}{x, y} \begin{funcdesc}{pow}{x, y}
Return $x^y$. Return \code{\var{x}**\var{y}}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{sin}{x} \begin{funcdesc}{sin}{x}
......
...@@ -122,7 +122,7 @@ One more support function is also defined: ...@@ -122,7 +122,7 @@ One more support function is also defined:
Return a string representation of \var{object}, protected against Return a string representation of \var{object}, protected against
recursive data structures. If the representation of \var{object} recursive data structures. If the representation of \var{object}
exposes a recursive entry, the recursive reference will be represented exposes a recursive entry, the recursive reference will be represented
as \samp{$<$Recursion on \var{typename} with id=\var{number}$>$}. The as \code{<Recursion on \var{typename} with id=\var{number}>}. The
representation is not otherwise formatted. representation is not otherwise formatted.
\begin{verbatim} \begin{verbatim}
......
...@@ -176,7 +176,7 @@ determines how often the interpreter checks for periodic things such ...@@ -176,7 +176,7 @@ determines how often the interpreter checks for periodic things such
as thread switches and signal handlers. The default is 10, meaning as thread switches and signal handlers. The default is 10, meaning
the check is performed every 10 Python virtual instructions. Setting the check is performed every 10 Python virtual instructions. Setting
it to a larger value may increase performance for programs using it to a larger value may increase performance for programs using
threads. Setting it to a value $\leq 0$ checks every virtual instruction, threads. Setting it to a value \code{<=} 0 checks every virtual instruction,
maximizing responsiveness as well as overhead. maximizing responsiveness as well as overhead.
\end{funcdesc} \end{funcdesc}
......
...@@ -48,8 +48,8 @@ integers: year (e.g.\ 1993), month (1--12), day (1--31), hour ...@@ -48,8 +48,8 @@ integers: year (e.g.\ 1993), month (1--12), day (1--31), hour
(0--23), minute (0--59), second (0--59), weekday (0--6, monday is 0), (0--23), minute (0--59), second (0--59), weekday (0--6, monday is 0),
Julian day (1--366) and daylight savings flag (-1, 0 or 1). Julian day (1--366) and daylight savings flag (-1, 0 or 1).
Note that unlike the C structure, the month value is a range of 1-12, not Note that unlike the C structure, the month value is a range of 1-12, not
0-11. A year value of $<$ 100 will typically be silently converted to 0-11. A year value less than 100 will typically be silently converted to
1900 $+$ year value. A -1 argument as daylight savings flag, passed to 1900 plus the year value. A -1 argument as daylight savings flag, passed to
\code{mktime()} will usually result in the correct daylight savings \code{mktime()} will usually result in the correct daylight savings
state to be filled in. state to be filled in.
......
...@@ -45,7 +45,7 @@ yet possible to access the parameters of a voice. ...@@ -45,7 +45,7 @@ yet possible to access the parameters of a voice.
\renewcommand{\indexsubitem}{(voice object method)} \renewcommand{\indexsubitem}{(voice object method)}
\begin{funcdesc}{GetGender}{} \begin{funcdesc}{GetGender}{}
Return the gender of the voice:\ 0 for male, 1 for female and $-1$ for neuter. Return the gender of the voice: 0 for male, 1 for female and -1 for neuter.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{NewChannel}{} \begin{funcdesc}{NewChannel}{}
......
...@@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream. ...@@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream.
\renewcommand{\indexsubitem}{(UDP stream method)} \renewcommand{\indexsubitem}{(UDP stream method)}
\begin{funcdesc}{Read}{timeout} \begin{funcdesc}{Read}{timeout}
Read a datagram, waiting at most \var{timeout} seconds ($-1$ is Read a datagram, waiting at most \var{timeout} seconds (-1 is
infinite). Return the data. infinite). Return the data.
\end{funcdesc} \end{funcdesc}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment