From b17e85aec806dbfe88e42abfa10c8edc24b677fa Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 21 Apr 2023 15:13:20 -0500 Subject: [PATCH] GH-103415: Document itertools.batched() in whatsnew.3.12 --- Doc/whatsnew/3.12.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index b3bb065741d037..f9406653e625b5 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -309,6 +309,13 @@ fractions * Objects of type :class:`fractions.Fraction` now support float-style formatting. (Contributed by Mark Dickinson in :gh:`100161`.) +itertools +--------- + +* Added :class:`itertools.batched()` for collecting into even-sized + tuples where the last batch may be shorter than the rest. + (Contributed by Raymond Hettinger in :gh:`98363`.) + math ----