MCPcopy Index your code
hub / github.com/python/cpython / __pow__

Method __pow__

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

Source from the content-addressed store, hash-verified

3601 return I(int(self) + int(other))
3602 __radd__ = __add__
3603 def __pow__(self, other, mod=None):
3604 if mod is None:
3605 return I(pow(int(self), int(other)))
3606 else:
3607 return I(pow(int(self), int(other), int(mod)))
3608 def __rpow__(self, other, mod=None):
3609 if mod is None:
3610 return I(pow(int(other), int(self), mod))

Callers

nothing calls this directly

Calls 2

powFunction · 0.85
IClass · 0.70

Tested by

no test coverage detected