In more itertools , peekable supports slice indexing. Fix the case where a reverse (negative-step) slice has…
In more itertools , peekable supports slice indexing. Fix the case where a reverse (negative-step) slice has…: a task in harness-adapters: Agentic coding environments (Harbor dataset). Current (broken) behavior: such slices cause the entire backing iterator to be consumed and cached. On an…
The task
**Current (broken) behavior:** such slices cause the entire backing iterator to be consumed and cached. On an infinite iterator this hangs; on a large finite iterator it wastes memory.
Part of harness-hub/harness-adapters.