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

Method __mod__

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

Source from the content-addressed store, hash-verified

114 def __rtruediv__(self, other):
115 return self.__class__(f'{other} / {self}')
116 def __mod__(self, other):
117 if isinstance(other, F):
118 return NotImplemented
119 return self.__class__(f'{self} % {other}')
120 def __rmod__(self, other):
121 return self.__class__(f'{other} % {self}')
122 def __pow__(self, other):

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected