The limitation with `Connection.chunks()` that it support lists only, while [`itertools.batched()`](https://docs.python.org/3/library/itertools.html#itertools.batched) supports any iterable.
The limitation with
Connection.chunks()that it support lists only, whileitertools.batched()supports any iterable.