summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-25 21:27:08 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-25 21:27:08 (GMT)
commitaf7bb8e95a1d7b1b2d35d3abdc9fe38786478161 (patch)
treedd1869d535da17cbf9e0e2b49f49a30b01db3143
parent1fcf87f138028255a9f0c03a093e98f6225f50c0 (diff)
downloadcpython-af7bb8e95a1d7b1b2d35d3abdc9fe38786478161.zip
cpython-af7bb8e95a1d7b1b2d35d3abdc9fe38786478161.tar.gz
cpython-af7bb8e95a1d7b1b2d35d3abdc9fe38786478161.tar.bz2
Backport of rev 43312:
SF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
-rw-r--r--Doc/lib/libstdtypes.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 519082f..b1f3dc1 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -249,6 +249,7 @@ comparison operations):
\hline
\lineiii{\var{x} * \var{y}}{product of \var{x} and \var{y}}{}
\lineiii{\var{x} / \var{y}}{quotient of \var{x} and \var{y}}{(1)}
+ \lineiii{\var{x} // \var{y}}{(floored) quotient of \var{x} and \var{y}}{(5)}
\lineiii{\var{x} \%{} \var{y}}{remainder of \code{\var{x} / \var{y}}}{(4)}
\hline
\lineiii{-\var{x}}{\var{x} negated}{}
@@ -299,6 +300,9 @@ Complex floor division operator, modulo operator, and \function{divmod()}.
\deprecated{2.3}{Instead convert to float using \function{abs()}
if appropriate.}
+\item[(5)]
+Also referred to as integer division. The resultant value is a whole integer,
+though the result's type is not necessarily int.
\end{description}
% XXXJH exceptions: overflow (when? what operations?) zerodivision