summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-08-19 03:19:09 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-08-19 03:19:09 (GMT)
commit5959c559df777eb61b10d986e45ed4bbf269b36d (patch)
treed9b6621c5b43c18788a73f74cb98238cd333fec0 /Doc
parent7dca21e59fdf088cb9cc7d04f03b6fd2a7c9d509 (diff)
downloadcpython-5959c559df777eb61b10d986e45ed4bbf269b36d.zip
cpython-5959c559df777eb61b10d986e45ed4bbf269b36d.tar.gz
cpython-5959c559df777eb61b10d986e45ed4bbf269b36d.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/liboperator.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex
index 7d34a0f..84450a4 100644
--- a/Doc/lib/liboperator.tex
+++ b/Doc/lib/liboperator.tex
@@ -131,6 +131,11 @@ Return the bitwise or of \var{a} and \var{b}.
Return \var{o} positive.
\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}
Return \var{a} shifted right by \var{b}.
@@ -310,6 +315,8 @@ symbols in the Python syntax and the functions in the
{\code{invert(\var{a})}}
\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})}}
\lineiii{Indexed Deletion}{\code{del \var{o}[\var{k}]}}