iter index raises ValueError with negative start / stop for general iterables
iter index raises ValueError with negative start / stop for general iterables: a task in repo2rlenv-swe-next (Harbor dataset). iter index has two internal code paths: a fast path for objects that have an .index method (like str and list ), and a slow path for general iterables that uses islice …
The task
`iter_index` has two internal code paths: a fast path for objects that have an `.index` method (like `str` and `list`), and a slow path for general iterables that uses `islice`. The fast path handles negative `start`/`stop` correctly with from-the-end semantics, but the slow path passes negative values directly to…
Part of FineEnvs/repo2rlenv-swe-next.