def __init__(self, num=0L, den=1L):
        if not isint(num):
            raise TypeError, "Rat numerator must be int or long (%r)" % num
        if not isint(den):
            raise TypeError, "Rat denominator must be int or long (%r)" % den
        # But the zero is always on
        if den == 0:
            raise ZeroDivisionError, "zero denominator"
        g = gcd(den, num)
        self.__num = long(num//g)
        self.__den = long(den//g)
Test creating a thumbnail of an animated GIF.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_binop.py/Rat.__init__--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImageTest.test_create_thumbnail_animation