MCPcopy Index your code
hub / github.com/RustPython/RustPython / __pow__

Method __pow__

Lib/test/test_descr.py:3514–3518  ·  view source on GitHub ↗
(self, other, mod=None)

Source from the content-addressed store, hash-verified

3512 return I(int(self) + int(other))
3513 __radd__ = __add__
3514 def __pow__(self, other, mod=None):
3515 if mod is None:
3516 return I(pow(int(self), int(other)))
3517 else:
3518 return I(pow(int(self), int(other), int(mod)))
3519 def __rpow__(self, other, mod=None):
3520 if mod is None:
3521 return I(pow(int(other), int(self), mod))

Callers

nothing calls this directly

Calls 2

IClass · 0.70
powFunction · 0.50

Tested by

no test coverage detected