Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 37210:69c358bf6a34 legacy-trunk
SF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
Will backport.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 25 Mar 2006 21:25:30 +0000 |
| parents | 64c83e0f683e |
| children | af24eb3bbfce |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Sat Mar 25 14:12:03 2006 +0000 +++ b/Doc/lib/libstdtypes.tex Sat Mar 25 21:25:30 2006 +0000 @@ -249,6 +249,7 @@ \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 @@ \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
