HF RL Explorer

isiterable returns wrong result for objects with getitem but no iter

isiterable returns wrong result for objects with getitem but no iter: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). The isiterable function from toolz.itertoolz incorrectly returns False for objects that are iterable via the getitem protocol (i.e., they define getitem but not iter )…

The task

The `isiterable` function from `toolz.itertoolz` incorrectly returns `False` for objects that are iterable via the `__getitem__` protocol (i.e., they define `__getitem__` but not `__iter__`). According to Python's documentation, `iter()` supports two protocols: one using `__iter__` and one using `__getitem__`…

Part of FineEnvs/repo2rlenv-r2e-gym.