def is_number(s):
    try:
        int(s)
        return True
    except TypeError:
        pass
    except ValueError:
        pass
    return False
Is this the right way for checking a number.
dataset/ETHPy150Open klipstein/dojango/dojango/util/__init__.py/is_number