Minor stylistic edit to the grouper recipe (gh112759)

This commit is contained in:
Jurjen N. E. Bos 2023-12-05 19:44:06 +01:00 committed by GitHub
parent 11d88a178b
commit c2e2df8356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -916,9 +916,9 @@ which incur interpreter overhead.
args = [iter(iterable)] * n args = [iter(iterable)] * n
if incomplete == 'fill': if incomplete == 'fill':
return zip_longest(*args, fillvalue=fillvalue) return zip_longest(*args, fillvalue=fillvalue)
if incomplete == 'strict': elif incomplete == 'strict':
return zip(*args, strict=True) return zip(*args, strict=True)
if incomplete == 'ignore': elif incomplete == 'ignore':
return zip(*args) return zip(*args)
else: else:
raise ValueError('Expected fill, strict, or ignore') raise ValueError('Expected fill, strict, or ignore')