def __init__(self, job_list, max_workers, max_overrunnable):
        """Create a CyclingPool to cycle over 'job_list'.

        :job_list: a list of callables to execute in worker processes
        :max_workers: the maximum number of worker processes to make
        :max_overrunnable: the maximum number of workers to leave behind

        """
        super(CyclingPool, self).__init__()

        if 1 < max_workers:
            raise ValueError(
                'invalid value for max_workers: {}'.format(max_workers))

        if max_overrunnable < 0:
            raise ValueError(
                'invalid value for max_overrunnable: {}'.format(
                    max_overrunnable))

        if max_overrunnable >= max_workers:
            raise ValueError(
                'invalid value for max_overrunnable: {}, should be less '
                'than max_workers: {}'.format(
                    max_overrunnable, max_workers))

        self._job_list = job_list
        self._max_workers = max_workers
        self._overunnable_workers = _calc_overrunnable_workers(
            max_workers=max_workers,
            max_overrunnable=max_overrunnable,
            num_jobs=len(job_list))
        self._pool_list = _PoolList()
        self._active_job_index_set = set()
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlmp_cyclingpool.py/CyclingPool.__init__/swapped operands of `<`