def __getitem__(self, index):
_dict, _list = self._dict, self._list<EOL>if isinstance(index, slice):<EOL><INDENT>return [(key, _dict[key]) for key in _list[index]]<EOL><DEDENT>key = _list[index]<EOL>return (key, _dict[key])<EOL>
Return the item as position *index*.