Take one Rat modulo another.
(self, other)
| 177 | return divmod(other, self) |
| 178 | |
| 179 | def __mod__(self, other): |
| 180 | """Take one Rat modulo another.""" |
| 181 | return divmod(self, other)[1] |
| 182 | |
| 183 | def __rmod__(self, other): |
| 184 | """Take one Rat modulo another (reversed args).""" |