mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Minor stylistic edit to the grouper recipe (gh112759)
This commit is contained in:
parent
11d88a178b
commit
c2e2df8356
1 changed files with 2 additions and 2 deletions
|
@ -916,9 +916,9 @@ which incur interpreter overhead.
|
|||
args = [iter(iterable)] * n
|
||||
if incomplete == 'fill':
|
||||
return zip_longest(*args, fillvalue=fillvalue)
|
||||
if incomplete == 'strict':
|
||||
elif incomplete == 'strict':
|
||||
return zip(*args, strict=True)
|
||||
if incomplete == 'ignore':
|
||||
elif incomplete == 'ignore':
|
||||
return zip(*args)
|
||||
else:
|
||||
raise ValueError('Expected fill, strict, or ignore')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue