parameters: (self,idx)
docstring: Removes the element idx
docstring_summary: Removes the element idx
docstring_tokens: Removes the element idx
function: def __delitem__(self,idx):
        """Removes the element idx"""
        if isinstance(idx, slice):
          indices = idx.indices(len(self))
          # Collect the elements to delete to a new list first.
          # Otherwise indices are screwed up during the actual
          # remove loop.
          toremove = []
          for i in range(*indices):
            toremove.append(self[i])
          for i in toremove:
            self.SMProperty.RemoveProxy(i.SMProxy)
          self._UpdateProperty()
        elif idx >= len(self) or idx < 0:
          raise IndexError
        else:
          self.SMProperty.RemoveProxy(self[idx].SMProxy)
          self._UpdateProperty()
function_tokens: def __delitem__ ( self , idx ) : if isinstance ( idx , slice ) : indices = idx . indices ( len ( self ) ) # Collect the elements to delete to a new list first. # Otherwise indices are screwed up during the actual # remove loop. toremove = [ ] for i in range ( * indices ) : toremove . append ( self [ i ] ) for i in toremove : self . SMProperty . RemoveProxy ( i . SMProxy ) self . _UpdateProperty ( ) elif idx >= len ( self ) or idx < 0 : raise IndexError else : self . SMProperty . RemoveProxy ( self [ idx ] . SMProxy ) self . _UpdateProperty ( )