def __getitem__(self, index):
        """
        Efficiently return value at *index* in iteration.

        Supports slice notation and negative indexes.
        """
        _dict, _list = self._dict, self._list
        if isinstance(index, slice):
            return [_dict[key] for key in _list[index]]
        else:
            return _dict[_list[index]]
def __getitem__ ( self , index ) : _dict , _list = self . _dict , self . _list if isinstance ( index , slice ) : return [ _dict [ key ] for key in _list [ index ] ] else : return _dict [ _list [ index ] ]
Efficiently return value at *index* in iteration.

        Supports slice notation and negative indexes.