'Convert a Rat to an long; self.den must be 1.'

def __long__(self):

    if (self.__den == 1):
        return long(self.__num)
    raise ValueError, ("can't    convert    %s    to    long" % repr(self))
