mirror of https://github.com/python/cpython
SF bug 1060644. Better explanation of min() and max() methods. Thanks Raymond Hettinger and Tim Peters.
This commit is contained in:
parent
961eda7ad9
commit
441609466b
|
@ -355,13 +355,17 @@ also have a number of specialized methods:
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{max}{other\optional{, context}}
|
\begin{methoddesc}{max}{other\optional{, context}}
|
||||||
Like \samp{max(self, other)} but returns \constant{NaN} if either is a
|
Like \samp{max(self, other)} except that the context rounding rule
|
||||||
\constant{NaN}. Applies the context rounding rule before returning.
|
is applied before returning and that \constant{NaN} values are
|
||||||
|
either signalled or ignored (depending on the context and whether
|
||||||
|
they are signaling or quiet).
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{min}{other\optional{, context}}
|
\begin{methoddesc}{min}{other\optional{, context}}
|
||||||
Like \samp{min(self, other)} but returns \constant{NaN} if either is a
|
Like \samp{min(self, other)} except that the context rounding rule
|
||||||
\constant{NaN}. Applies the context rounding rule before returning.
|
is applied before returning and that \constant{NaN} values are
|
||||||
|
either signalled or ignored (depending on the context and whether
|
||||||
|
they are signaling or quiet).
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{normalize}{\optional{context}}
|
\begin{methoddesc}{normalize}{\optional{context}}
|
||||||
|
|
Loading…
Reference in New Issue