[docs] [issue32099] Use range in itertools roundrobin recipe

Tim Peters report at bugs.python.org
Mon Nov 20 22:30:26 EST 2017


Tim Peters <tim at python.org> added the comment:

I agree the current recipe strikes a very nice balance among competing interests, and is educational on several counts.

s/pending/numactive/

    # Remove the iterator we just exhausted from the cycle.
    numactive -= 1
    nexts = cycle(islice(nexts, numactive))

----------
nosy: +tim.peters

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32099>
_______________________________________


More information about the docs mailing list