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

Method __truediv__

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

Source from the content-addressed store, hash-verified

108 def __rmul__(self, other):
109 return self.__class__(f'{other} * {self}')
110 def __truediv__(self, other):
111 if isinstance(other, F):
112 return NotImplemented
113 return self.__class__(f'{self} / {other}')
114 def __rtruediv__(self, other):
115 return self.__class__(f'{other} / {self}')
116 def __mod__(self, other):

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected