'hash(self)'

def __hash__(self):

    dinv = pow(self._denominator, (_PyHASH_MODULUS - 2), _PyHASH_MODULUS)
    if (not dinv):
        hash_ = _PyHASH_INF
    else:
        hash_ = ((abs(self._numerator) * dinv) % _PyHASH_MODULUS)
    result = (hash_ if (self >= 0) else (- hash_))
    return ((-2) if (result == (-1)) else result)
