OrderedMultiDict.addlist() silently drops values when passed a one-shot iterator
OrderedMultiDict.addlist() silently drops values when passed a one-shot iterator: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). The docstring for addlist() says "tuples and other sequences and iterables work", but passing a one-shot iterator (such as iter( ... ) or a generator…
The task
The docstring for `addlist()` says "tuples and other sequences and iterables work", but passing a one-shot iterator (such as `iter([...])` or a generator expression) as the values argument leaves the `OMD` internally inconsistent: the key appears in `keys()` but `getlist()` returns an empty list.
Part of FineEnvs/repo2rlenv-r2e-gym.