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

Method __truediv__

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

Source from the content-addressed store, hash-verified

156 return self.__class__(other.numerator * self.numerator,
157 other.denominator * self.denominator)
158 def __truediv__(self, other):
159 if isinstance(other, F):
160 return NotImplemented
161 return self.__class__(self.numerator * other.denominator,
162 self.denominator * other.numerator)
163 def __rtruediv__(self, other):
164 return self.__class__(other.numerator * self.denominator,
165 other.denominator * self.numerator)

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected