[issue46718] Feature: itertools: add batches

2022-02-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46718] Feature: itertools: add batches

2022-02-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: For large n, I don't think a C implementation would do much better than your Python version where most of the work is done by chain() and islice() which are already in C. The best that could be done is to eliminate the overhead of chain() which is

[issue46718] Feature: itertools: add batches

2022-02-11 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger, tim.peters title: Feature: iptertools: add batches -> Feature: itertools: add batches ___ Python tracker ___