def __long__(self):
        if self.__den == 1:
            return long(self.__num)
        raise ValueError, "can't convert %s to long" % repr(self)
Convert a Rat to an long; self.den must be 1.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_binop.py/Rat.__long__