Fix __add__ in SaverList
This commit is contained in:
parent
e31b9f0d27
commit
315977c285
1 changed files with 4 additions and 1 deletions
|
|
@ -237,10 +237,13 @@ class _SaverList(_SaverMutable, MutableSequence):
|
||||||
self._data = list()
|
self._data = list()
|
||||||
|
|
||||||
@_save
|
@_save
|
||||||
def __add__(self, otherlist):
|
def __iadd__(self, otherlist):
|
||||||
self._data = self._data.__add__(otherlist)
|
self._data = self._data.__add__(otherlist)
|
||||||
return self._data
|
return self._data
|
||||||
|
|
||||||
|
def __add__(self, otherlist):
|
||||||
|
return list(self._data) + otherlist
|
||||||
|
|
||||||
@_save
|
@_save
|
||||||
def insert(self, index, value):
|
def insert(self, index, value):
|
||||||
self._data.insert(index, self._convert_mutables(value))
|
self._data.insert(index, self._convert_mutables(value))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue