From: Jurjen N. E. Bos Date: Tue, 5 Dec 2023 18:44:06 +0000 (+0100) Subject: Minor stylistic edit to the grouper recipe (gh112759) X-Git-Tag: v3.13.0a3~510 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2e2df83560a3d4cb602f6d57cb70ac8aad7f9e6;p=thirdparty%2FPython%2Fcpython.git Minor stylistic edit to the grouper recipe (gh112759) --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index ebb4ebcfa761..8a4254cf15eb 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')