def __str__(self):
        if self.__den == 1:
            return str(self.__num)
        else:
            return '(%s/%s)' % (str(self.__num), str(self.__den))

    # a + b
dataset/ETHPy150Open robmoggach/python-moshion/moshion/extractframes/Rat.py/Rat.__str__/original