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

Method __rmul__

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

Source from the content-addressed store, hash-verified

153 return self.__class__(self.numerator * other.numerator,
154 self.denominator * other.denominator)
155 def __rmul__(self, other):
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

Callers 1

test_wrappersMethod · 0.45

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected