From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 15 Dec 2023 22:32:32 +0000 (+0100) Subject: [3.12] Minor stylistic edit to the grouper recipe (gh-112759) (gh-113196) X-Git-Tag: v3.12.2~304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85ee49c4344c60504460171eaedc7f4dcbffca10;p=thirdparty%2FPython%2Fcpython.git [3.12] Minor stylistic edit to the grouper recipe (gh-112759) (gh-113196) --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 15b449d65051..fc25e51678ac 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')