[Python-checkins] python/dist/src/Doc/lib liboperator.tex,1.21,1.22
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
2002年8月18日 20:19:11 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv23917/Doc/Lib
Modified Files:
liboperator.tex
Log Message:
Added __pow__(a,b) to the operator module. Completes the pattern of
all operators having a counterpart in the operator module.
Closes SF bug #577513.
Index: liboperator.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liboperator.tex,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** liboperator.tex 20 Oct 2001 04:24:09 -0000 1.21
--- liboperator.tex 19 Aug 2002 03:19:09 -0000 1.22
***************
*** 132,135 ****
--- 132,140 ----
\end{funcdesc}
+ \begin{funcdesc}{pow}{a, b}
+ \funcline{__pow__}{a, b}
+ Return \var{a} \code{**} \var{b}, for \var{a} and \var{b} numbers.
+ \end{funcdesc}
+
\begin{funcdesc}{rshift}{a, b}
\funcline{__rshift__}{a, b}
***************
*** 311,314 ****
--- 316,321 ----
\lineiii{Bitwise Or}{\code{\var{a} | \var{b}}}
{\code{or_(\var{a}, \var{b})}}
+ \lineiii{Exponentiation}{\code{\var{a} ** \var{b}}}
+ {\code{pow(\var{a}, \var{b})}}
\lineiii{Indexed Assignment}{\code{\var{o}[\var{k}] = \var{v}}}
{\code{setitem(\var{o}, \var{k}, \var{v})}}