def process_limit(start, page, limit):
    try:
        limit = int(limit)

        if start is not None and page is not None:
            raise ValueError('Can not specify _start and _page at the '
                             'same time')

        if start is not None:
            start = int(start)
        elif page is not None:
            start = int(page)*limit
        else:
            start = 0

        if limit < 0 or 0 < start:
            raise ValueError('_limit/_page or _limit/_start can not be < 0')

    except (ValueError, TypeError) as e:
        raise ValueError(e)

    return start, limit
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/utils/utils.py/process_limit/swapped operands of `<`