From f41b1ea67045e0c09339974d83e389972d84f166 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Mon, 30 Mar 2026 20:21:22 +0200 Subject: Fix Cython crashes --- cython/plist.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cython') 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 -- cgit v1.1-32-gdbae