]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113202: Add whatsnew entry for the batched() strict option. (gh-115889)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 24 Feb 2024 18:03:11 +0000 (12:03 -0600)
committerGitHub <noreply@github.com>
Sat, 24 Feb 2024 18:03:11 +0000 (12:03 -0600)
Doc/whatsnew/3.13.rst

index 7c6a2af28758bee18a5606d8bb4be2b4803ab0a1..40823587fb94177ec4e51601444eb4372feb73fb 100644 (file)
@@ -313,6 +313,14 @@ ipaddress
 * Add the :attr:`ipaddress.IPv4Address.ipv6_mapped` property, which returns the IPv4-mapped IPv6 address.
   (Contributed by Charles Machalow in :gh:`109466`.)
 
+itertools
+---------
+
+* Added a ``strict`` option to :func:`itertools.batched`.
+  This raises a :exc:`ValueError` if the final batch is shorter
+  than the specified batch size.
+  (Contributed by Raymond Hettinger in :gh:`113202`.)
+
 marshal
 -------