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

Method __mul__

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

Source from the content-addressed store, hash-verified

102 def __init__(self, value):
103 self.value = value
104 def __mul__(self, other):
105 if isinstance(other, F):
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):

Callers

nothing calls this directly

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected