From 84e977c8208d935384728b81e7eb6d293b84f207 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 14 Nov 2008 21:06:34 +0100 Subject: [PATCH] disable slice assignments to pointers for now --- Cython/Compiler/ExprNodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 3f0ff191..f9e78cd4 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -1831,6 +1831,7 @@ class SliceIndexNode(ExprNode): array_length = rhs.type.size self.generate_slice_guard_code(code, array_length) else: + error("Slice assignments from pointers are not yet supported.") # FIXME: fix the array size according to start/stop array_length = self.base.type.size for i in range(array_length): -- 2.26.2