mirror of
https://github.com/python/cpython
synced 2024-09-20 12:31:35 +00:00
Get rid of math mode in some places.
This commit is contained in:
parent
3e1e274d0b
commit
f259efe3d9
|
@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{exp}{x}
|
||||
Return the exponential value $\mbox{e}^x$.
|
||||
Return \code{e**\var{x}}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{fabs}{x}
|
||||
|
@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{ldexp}{x, i}
|
||||
Return $x {\times} 2^i$.
|
||||
Return \code{\var{x} * (2**\var{i})}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{modf}{x}
|
||||
|
@ -71,7 +71,7 @@ carry the sign of \var{x}.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{pow}{x, y}
|
||||
Return $x^y$.
|
||||
Return \code{\var{x}**\var{y}}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{sin}{x}
|
||||
|
|
|
@ -122,7 +122,7 @@ One more support function is also defined:
|
|||
Return a string representation of \var{object}, protected against
|
||||
recursive data structures. If the representation of \var{object}
|
||||
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.
|
||||
|
||||
\begin{verbatim}
|
||||
|
|
|
@ -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
|
||||
the check is performed every 10 Python virtual instructions. Setting
|
||||
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.
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
|
@ -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),
|
||||
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
|
||||
0-11. A year value of $<$ 100 will typically be silently converted to
|
||||
1900 $+$ year value. A -1 argument as daylight savings flag, passed to
|
||||
0-11. A year value less than 100 will typically be silently converted 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
|
||||
state to be filled in.
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ yet possible to access the parameters of a voice.
|
|||
\renewcommand{\indexsubitem}{(voice object method)}
|
||||
|
||||
\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}
|
||||
|
||||
\begin{funcdesc}{NewChannel}{}
|
||||
|
|
|
@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream.
|
|||
\renewcommand{\indexsubitem}{(UDP stream method)}
|
||||
|
||||
\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.
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ Return the hyperbolic cosine of \var{x}.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{exp}{x}
|
||||
Return the exponential value $\mbox{e}^x$.
|
||||
Return \code{e**\var{x}}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{fabs}{x}
|
||||
|
@ -62,7 +62,7 @@ Return the Euclidean distance, \code{sqrt(x*x + y*y)}.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{ldexp}{x, i}
|
||||
Return $x {\times} 2^i$.
|
||||
Return \code{\var{x} * (2**\var{i})}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{modf}{x}
|
||||
|
@ -71,7 +71,7 @@ carry the sign of \var{x}.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{pow}{x, y}
|
||||
Return $x^y$.
|
||||
Return \code{\var{x}**\var{y}}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{sin}{x}
|
||||
|
|
|
@ -122,7 +122,7 @@ One more support function is also defined:
|
|||
Return a string representation of \var{object}, protected against
|
||||
recursive data structures. If the representation of \var{object}
|
||||
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.
|
||||
|
||||
\begin{verbatim}
|
||||
|
|
|
@ -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
|
||||
the check is performed every 10 Python virtual instructions. Setting
|
||||
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.
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
|
@ -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),
|
||||
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
|
||||
0-11. A year value of $<$ 100 will typically be silently converted to
|
||||
1900 $+$ year value. A -1 argument as daylight savings flag, passed to
|
||||
0-11. A year value less than 100 will typically be silently converted 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
|
||||
state to be filled in.
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ yet possible to access the parameters of a voice.
|
|||
\renewcommand{\indexsubitem}{(voice object method)}
|
||||
|
||||
\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}
|
||||
|
||||
\begin{funcdesc}{NewChannel}{}
|
||||
|
|
|
@ -164,7 +164,7 @@ A read-only member giving the port number of this UDP stream.
|
|||
\renewcommand{\indexsubitem}{(UDP stream method)}
|
||||
|
||||
\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.
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
Loading…
Reference in a new issue