[Python-checkins] r43313 - python/branches/release24-maint/Doc/lib/libstdtypes.tex

neal.norwitz python-checkins at python.org
Sat Mar 25 22:27:08 CET 2006


Author: neal.norwitz
Date: Sat Mar 25 22:27:08 2006
New Revision: 43313

Modified:
   python/branches/release24-maint/Doc/lib/libstdtypes.tex
Log:
Backport of rev 43312:

SF bug # 1457358 and patch # 1458419, floor division not documented.  Patch by Andy.


Modified: python/branches/release24-maint/Doc/lib/libstdtypes.tex
==============================================================================
--- python/branches/release24-maint/Doc/lib/libstdtypes.tex	(original)
+++ python/branches/release24-maint/Doc/lib/libstdtypes.tex	Sat Mar 25 22:27:08 2006
@@ -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
 


More information about the Python-checkins mailing list