[Python-checkins] python/dist/src/Doc/ref ref5.tex,1.60,1.61
rhettinger@sourceforge.net
rhettinger@sourceforge.net
Tue, 21 May 2002 11:19:52 -0700
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv25054/ref
Modified Files:
ref5.tex
Log Message:
Patch 543387. Document deprecation of complex %, //,and divmod().
Index: ref5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref5.tex,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** ref5.tex 30 Apr 2002 02:18:51 -0000 1.60
--- ref5.tex 21 May 2002 18:19:49 -0000 1.61
***************
*** 690,694 ****
modulo are also connected with the built-in function \function{divmod()}:
\code{divmod(x, y) == (x/y, x\%y)}. These identities don't hold for
! floating point and complex numbers; there similar identities hold
approximately where \code{x/y} is replaced by \code{floor(x/y)}) or
\code{floor(x/y) - 1} (for floats),\footnote{
--- 690,694 ----
modulo are also connected with the built-in function \function{divmod()}:
\code{divmod(x, y) == (x/y, x\%y)}. These identities don't hold for
! floating point numbers; there similar identities hold
approximately where \code{x/y} is replaced by \code{floor(x/y)}) or
\code{floor(x/y) - 1} (for floats),\footnote{
***************
*** 698,703 ****
the latter result, in order to preserve that \code{divmod(x,y)[0]
* y + x \%{} y} be very close to \code{x}.
! } or \code{floor((x/y).real)} (for
! complex).
The \code{+} (addition) operator yields the sum of its arguments.
--- 698,708 ----
the latter result, in order to preserve that \code{divmod(x,y)[0]
* y + x \%{} y} be very close to \code{x}.
! }.
!
! Complex floor division operator, modulo operator, and
! \function{divmod()}.
!
! \deprecated{2.3}{Instead convert to float using \function{abs()}
! if appropriate.}
The \code{+} (addition) operator yields the sum of its arguments.