From: Raymond Hettinger Date: Sat, 24 Feb 2024 18:03:11 +0000 (-0600) Subject: gh-113202: Add whatsnew entry for the batched() strict option. (gh-115889) X-Git-Tag: v3.13.0a5~261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53c5c17e0a97ee06e511c89f1ca6ceb38fd06246;p=thirdparty%2FPython%2Fcpython.git gh-113202: Add whatsnew entry for the batched() strict option. (gh-115889) --- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 7c6a2af28758..40823587fb94 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -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 -------