The iter index function in more-itertools has an inconsistency between its two internal code paths when…
The iter index function in more-itertools has an inconsistency between its two internal code paths when…: a task in repo2rlenv-swe-gen (Harbor dataset). iter index has two code paths: - Fast path : used when the iterable has a .index method (e.g., str , list ). Negative start / stop work correctly…
The task
`iter_index` has two code paths: - **Fast path**: used when the iterable has a `.index` method (e.g., `str`, `list`). Negative `start`/`stop` work correctly via the native `.index` semantics. - **Slow path**: used for general iterables (those without `.index`). This path uses `islice`, which rejects negative indices…
Part of FineEnvs/repo2rlenv-swe-gen.