def _select(item):
    global i
    i = i + 1 if i < 10**10 else 0
    if len(item) == 0:
        raise ValueError("No valid pools")
    return item[i % len(item)]
Selection utility function
dataset/ETHPy150Open c00w/bitHopper/bitHopper/Logic/ServerLogic.py/_select