From cdfded6a4c7d50fc23f3944a18d5fe13384d7e89 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 4 May 2009 17:47:57 +0200 Subject: [PATCH] be a little more conservative in the last change --- Cython/Compiler/ExprNodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f248af97..5b617224 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2002,7 +2002,8 @@ class SliceIndexNode(ExprNode): def analyse_target_types(self, env): self.analyse_types(env) # when assigning, we must accept any Python type - self.type = py_object_type + if self.type.is_pyobject: + self.type = py_object_type def analyse_types(self, env): self.base.analyse_types(env) -- 2.26.2