From 41fb2829898d92aeb5ef2e5edb507ba63d59bb56 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 24 May 2024 17:16:13 -0500 Subject: [PATCH] Remove the "strict" conflict --- Doc/library/itertools.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 091d79662ece9a..a9c99cddb516e4 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -189,8 +189,6 @@ loops that truncate the stream. raise ValueError('n must be at least one') iterable = iter(iterable) while batch := tuple(islice(iterable, n)): - if strict and len(batch) != n: - raise ValueError('batched(): incomplete batch') yield batch .. versionadded:: 3.12