fractions.Fraction.__rdivmod__

Fraction.__rdivmod__(other)

divmod(other, self): The pair (self // other, self % other).

Sometimes this can be computed faster than the pair of operations.