Skip to content

Commit

Permalink
Minor stylistic edit to the grouper recipe (gh112759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneb authored Dec 5, 2023
1 parent 11d88a1 commit c2e2df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/itertools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c2e2df8

Please sign in to comment.