We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d88a1 commit c2e2df8Copy full SHA for c2e2df8
Doc/library/itertools.rst
@@ -916,9 +916,9 @@ which incur interpreter overhead.
916
args = [iter(iterable)] * n
917
if incomplete == 'fill':
918
return zip_longest(*args, fillvalue=fillvalue)
919
- if incomplete == 'strict':
+ elif incomplete == 'strict':
920
return zip(*args, strict=True)
921
- if incomplete == 'ignore':
+ elif incomplete == 'ignore':
922
return zip(*args)
923
else:
924
raise ValueError('Expected fill, strict, or ignore')
0 commit comments