Name
__pow__
Synopsis
__pow__(self,other
[,modulo
])
x
**
y
and
pow(
x
,y
)
both call x
.__pow__(
y
)
, while
pow(
x
,y
,z
)
calls x
.__pow__(
y
,z
)
.
x
.__pow__(
y
,z
)
should return a value equal to the expression
x
.__pow__(
y
)%
z
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.