HF RL Explorer

IndexedSet silently wraps out-of-range negative indices instead of raising IndexError

IndexedSet silently wraps out-of-range negative indices instead of raising IndexError: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When using IndexedSet with negative indices that are out of range, instead of raising an IndexError , the set silently returns a wrong element (or removes…

The task

When using `IndexedSet` with negative indices that are out of range, instead of raising an `IndexError`, the set silently returns a wrong element (or removes a wrong element via `pop`). This happens because negative-index normalization is applied twice — once in `__getitem__` and once inside `_get_real_index` —…

Part of FineEnvs/repo2rlenv-r2e-gym.