def __delitem__(self, index):
_set = self._set<EOL>_list = self._list<EOL>if isinstance(index, slice):<EOL><INDENT>values = _list[index]<EOL>_set.difference_update(values)<EOL><DEDENT>else:<EOL><INDENT>value = _list[index]<EOL>_set.remove(value)<EOL><DEDENT>del _list[index]<EOL>
Remove the element at position *index*.

Supports slice notation and negative indexes.