merge with 3.2
This commit is contained in:
commit
54af1ba326
|
@ -457,7 +457,7 @@ loops that truncate the stream.
|
||||||
if r > n:
|
if r > n:
|
||||||
return
|
return
|
||||||
indices = list(range(n))
|
indices = list(range(n))
|
||||||
cycles = range(n, n-r, -1)
|
cycles = list(range(n, n-r, -1))
|
||||||
yield tuple(pool[i] for i in indices[:r])
|
yield tuple(pool[i] for i in indices[:r])
|
||||||
while n:
|
while n:
|
||||||
for i in reversed(range(r)):
|
for i in reversed(range(r)):
|
||||||
|
|
Loading…
Reference in New Issue