diff options
author | Jurjen N. E. Bos <jneb@users.noreply.github.com> | 2023-12-05 18:44:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 18:44:06 (GMT) |
commit | c2e2df83560a3d4cb602f6d57cb70ac8aad7f9e6 (patch) | |
tree | cfac6c0cfb8b905e10d5dc8cccae29c9164d5c0e /Doc/library | |
parent | 11d88a178b077e42025da538b890db3151a47070 (diff) | |
download | cpython-c2e2df83560a3d4cb602f6d57cb70ac8aad7f9e6.zip cpython-c2e2df83560a3d4cb602f6d57cb70ac8aad7f9e6.tar.gz cpython-c2e2df83560a3d4cb602f6d57cb70ac8aad7f9e6.tar.bz2 |
Minor stylistic edit to the grouper recipe (gh112759)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/itertools.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index ebb4ebc..8a4254c 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -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') |