mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
merge with 3.2
This commit is contained in:
commit
54af1ba326
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ loops that truncate the stream.
|
|||
if r > n:
|
||||
return
|
||||
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])
|
||||
while n:
|
||||
for i in reversed(range(r)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue