]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-103415: Document itertools.batched() in whatsnew.3.12 (#103670)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 22 Apr 2023 01:52:37 +0000 (20:52 -0500)
committerGitHub <noreply@github.com>
Sat, 22 Apr 2023 01:52:37 +0000 (20:52 -0500)
Doc/whatsnew/3.12.rst

index b3bb065741d037481ed45463e91ab08e03157aed..f9406653e625b514d4c306abbc29dd656ca502dd 100644 (file)
@@ -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
 ----