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

Method __rmul__

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

Source from the content-addressed store, hash-verified

106 return NotImplemented
107 return self.__class__(f'{self} * {other}')
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

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected