def cycle(list):
    i = -1
    while True:
        try:
            i = i + 1
            yield list[i]
        except __HOLE__:
            i = 0
            yield list[i]
dataset/ETHPy150Open cloudbuilders/radioedit/radioedit.py/cycle