From: Stefan Behnel Date: Fri, 14 Nov 2008 20:06:34 +0000 (+0100) Subject: disable slice assignments to pointers for now X-Git-Tag: 0.11-beta~252 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84e977c8208d935384728b81e7eb6d293b84f207;p=cython.git disable slice assignments to pointers for now --- 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):