python 3.12 adds `itertools.batched`

last updated: Oct 20, 2023

https://docs.python.org/3/library/itertools.html

via this toot, I too have written this function a lot of times and I'm glad it will be in the stdlib.

↑ up