> > Adding the following method to the myint class solves this issue: > > def __rdiv__(self, other): > return self.__div__(other) > Sorry, it's the other way around, add this method: def __rdiv__(self, other): return other.__div__(self)