From: Stefan Behnel Date: Mon, 4 May 2009 15:47:57 +0000 (+0200) Subject: be a little more conservative in the last change X-Git-Tag: 0.11.2.rc1~10^2~36^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cdfded6a4c7d50fc23f3944a18d5fe13384d7e89;p=cython.git be a little more conservative in the last change --- 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)