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): | |||
| 789 | return self._array.__iter__() | 789 | return self._array.__iter__() |
| 790 | 790 | ||
| 791 | def __getitem__(self, index): | 791 | def __getitem__(self, index): |
| 792 | return self._array[index] | 792 | value = self._array[index] |
| 793 | if isinstance(value, list): | ||
| 794 | return [item.copy() for item in value] | ||
| 795 | return value.copy() | ||
| 793 | 796 | ||
| 794 | def __setitem__(self, index, value): | 797 | def __setitem__(self, index, value): |
| 795 | cdef Node n | 798 | cdef Node n |
