def __getitem__(self, index):
_dict, _list = self._dict, self._list<EOL>if isinstance(index, slice):<EOL><INDENT>return [_dict[key] for key in _list[index]]<EOL><DEDENT>return _dict[_list[index]]<EOL>
Efficiently return value at *index* in iteration.

Supports slice notation and negative indexes.