diff options
author | wim glenn <wim.glenn@gmail.com> | 2023-03-21 17:06:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 17:06:18 (GMT) |
commit | 4bb1dd3c5c14338c9d9cea5988431c858b3b76e0 (patch) | |
tree | c462e099c0825d31449702cfc8ba0f8431be6bc7 /Doc | |
parent | 3bb475662ba998e1b2d26fa370794d0804e33927 (diff) | |
download | cpython-4bb1dd3c5c14338c9d9cea5988431c858b3b76e0.zip cpython-4bb1dd3c5c14338c9d9cea5988431c858b3b76e0.tar.gz cpython-4bb1dd3c5c14338c9d9cea5988431c858b3b76e0.tar.bz2 |
gh-102876: remove superfluous parens from itertools.batched recipe (GH-102877)
remove superfluous parens from itertools.batched recipe
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 78f64ea..38bc369 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -195,7 +195,7 @@ loops that truncate the stream. if n < 1: raise ValueError('n must be at least one') it = iter(iterable) - while (batch := tuple(islice(it, n))): + while batch := tuple(islice(it, n)): yield batch .. versionadded:: 3.12 |