[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex,1.80.6.13,1.80.6.14
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sat, 05 Oct 2002 08:41:58 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv13793
Modified Files:
Tag: release22-maint
libstdtypes.tex
Log Message:
Backport 1.94:
Patch 543387. Document deprecation of complex %, //,and divmod().
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.80.6.13
retrieving revision 1.80.6.14
diff -C2 -d -r1.80.6.13 -r1.80.6.14
*** libstdtypes.tex 5 Oct 2002 15:38:16 -0000 1.80.6.13
--- libstdtypes.tex 5 Oct 2002 15:41:56 -0000 1.80.6.14
***************
*** 218,223 ****
\bifuncindex{complex}
! All numeric types support the following operations, sorted by
! ascending priority (operations in the same box have the same
priority; all numeric operations have a higher priority than
comparison operations):
--- 218,223 ----
\bifuncindex{complex}
! All numeric types (except complex) support the following operations,
! sorted by ascending priority (operations in the same box have the same
priority; all numeric operations have a higher priority than
comparison operations):
***************
*** 229,233 ****
\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}}{remainder of \code{\var{x} / \var{y}}}{}
\hline
\lineiii{-\var{x}}{\var{x} negated}{}
--- 229,233 ----
\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}}{remainder of \code{\var{x} / \var{y}}}{(4)}
\hline
\lineiii{-\var{x}}{\var{x} negated}{}
***************
*** 240,244 ****
\lineiii{complex(\var{re},\var{im})}{a complex number with real part \var{re}, imaginary part \var{im}. \var{im} defaults to zero.}{}
\lineiii{\var{c}.conjugate()}{conjugate of the complex number \var{c}}{}
! \lineiii{divmod(\var{x}, \var{y})}{the pair \code{(\var{x} / \var{y}, \var{x} \%{} \var{y})}}{(3)}
\lineiii{pow(\var{x}, \var{y})}{\var{x} to the power \var{y}}{}
\lineiii{\var{x} ** \var{y}}{\var{x} to the power \var{y}}{}
--- 240,244 ----
\lineiii{complex(\var{re},\var{im})}{a complex number with real part \var{re}, imaginary part \var{im}. \var{im} defaults to zero.}{}
\lineiii{\var{c}.conjugate()}{conjugate of the complex number \var{c}}{}
! \lineiii{divmod(\var{x}, \var{y})}{the pair \code{(\var{x} / \var{y}, \var{x} \%{} \var{y})}}{(3)(4)}
\lineiii{pow(\var{x}, \var{y})}{\var{x} to the power \var{y}}{}
\lineiii{\var{x} ** \var{y}}{\var{x} to the power \var{y}}{}
***************
*** 272,275 ****
--- 272,281 ----
See section \ref{built-in-funcs}, ``Built-in Functions,'' for a full
description.
+
+ \item[(4)]
+ Complex floor division operator, modulo operator, and \function{divmod()}.
+
+ \deprecated{2.3}{Instead convert to float using \function{abs()}
+ if appropriate.}
\end{description}