diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-15 22:32:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 22:32:32 (GMT) |
commit | 85ee49c4344c60504460171eaedc7f4dcbffca10 (patch) | |
tree | 78bd558b4d596ee9579818a9a35985533247dfc3 /Doc/library/itertools.rst | |
parent | 9c32d0267f3fc2049ffa2b9e1f50960647cfc487 (diff) | |
download | cpython-85ee49c4344c60504460171eaedc7f4dcbffca10.zip cpython-85ee49c4344c60504460171eaedc7f4dcbffca10.tar.gz cpython-85ee49c4344c60504460171eaedc7f4dcbffca10.tar.bz2 |
[3.12] Minor stylistic edit to the grouper recipe (gh-112759) (gh-113196)
Diffstat (limited to 'Doc/library/itertools.rst')
-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 15b449d..fc25e51 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') |