diff --git a/attributs.py b/attributs.py index 50fe3e5..4575c16 100644 --- a/attributs.py +++ b/attributs.py @@ -147,6 +147,11 @@ class AttrsList(list): finally: super(AttrsList, self).__init__(self._parent[self._attr]) + def __delitem__(self, index): + self._start() + super(AttrsList, self).__delitem__(index) + self._commit() + def append(self, val): self._start() super(AttrsList, self).append(val)