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

Method __pow__

Lib/test/test_fractions.py:122–125  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

120 def __rmod__(self, other):
121 return self.__class__(f'{other} % {self}')
122 def __pow__(self, other):
123 if isinstance(other, F):
124 return NotImplemented
125 return self.__class__(f'{self} ** {other}')
126 def __rpow__(self, other):
127 return self.__class__(f'{other} ** {self}')
128 def __eq__(self, other):

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected