]> granicus.if.org Git - python/commitdiff
SF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Mar 2006 21:25:30 +0000 (21:25 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Mar 2006 21:25:30 +0000 (21:25 +0000)
Will backport.

Doc/lib/libstdtypes.tex

index 55e7ee6c2d78a0d68ae38620e163ab19f43d8fb8..a1fa6f0e51abd6d7f78008bd0a8ba0af9e5fb44c 100644 (file)
@@ -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