Divide two Rats, returning quotient and remainder (reversed args).
(self, other)
| 169 | return (x, self - other * x) |
| 170 | |
| 171 | def __rdivmod__(self, other): |
| 172 | """Divide two Rats, returning quotient and remainder (reversed args).""" |
| 173 | if isint(other): |
| 174 | other = Rat(other) |
| 175 | elif not isRat(other): |
| 176 | return NotImplemented |
| 177 | return divmod(other, self) |
| 178 | |
| 179 | def __mod__(self, other): |
| 180 | """Take one Rat modulo another.""" |
no test coverage detected