(self, other)
| 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) |
| 166 | def __mod__(self, other): |
| 167 | if isinstance(other, F): |
| 168 | return NotImplemented |