def __delitem__(self, index):
        """
        Remove the element at position *index*.

        Supports slice notation and negative indexes.
        """
        _list = self._list
        if isinstance(index, slice):
            values = _list[index]
            self._set.difference_update(values)
        else:
            value = _list[index]
            self._set.remove(value)
        del _list[index]
def __delitem__ ( self , index ) : _list = self . _list if isinstance ( index , slice ) : values = _list [ index ] self . _set . difference_update ( values ) else : value = _list [ index ] self . _set . remove ( value ) del _list [ index ]
Remove the element at position *index*.

        Supports slice notation and negative indexes.