From: Raymond Hettinger Date: Sat, 22 Apr 2023 01:52:37 +0000 (-0500) Subject: GH-103415: Document itertools.batched() in whatsnew.3.12 (#103670) X-Git-Tag: v3.12.0b1~493 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cb0871584d2288e436445ee32e585bf5af7c9de;p=thirdparty%2FPython%2Fcpython.git GH-103415: Document itertools.batched() in whatsnew.3.12 (#103670) --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index b3bb065741d0..f9406653e625 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 ----