def is_number(s):
    """Is this the right way for checking a number.
    Maybe there is a better pythonic way :-)"""
    try:
        int(s)
        return True
    except TypeError:
        pass
    except __HOLE__:
        pass
    return False
dataset/ETHPy150Open klipstein/dojango/dojango/util/__init__.py/is_number