def _int_or_long(v):
    try:
        v = int(v)
    except ValueError:
        try:
            v = long(v)
        except __HOLE__:
            return False
    return True
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_ext/productratings/queries.py/_int_or_long