diff options
Diffstat (limited to 'cython')
| -rw-r--r-- | cython/plist.pyx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index 29c1181..73912d8 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx @@ -789,7 +789,10 @@ cdef class Array(Node): return self._array.__iter__() def __getitem__(self, index): - return self._array[index] + value = self._array[index] + if isinstance(value, list): + return [item.copy() for item in value] + return value.copy() def __setitem__(self, index, value): cdef Node n |
