Fix Cython crashes

This commit is contained in:
Dave Nicolson
2026-03-30 20:21:22 +02:00
committed by GitHub
parent c8b36a80ba
commit f41b1ea670
+4 -1
View File
@@ -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