From 64d2bdeeea913fd66bf839c0de66cd8cdbec26a4 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Nov 2010 23:19:13 +0100 Subject: [PATCH] fix TupleNode typing as tuple_type instead of py_object_type --- 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 988048bd..1434af09 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -3888,7 +3888,8 @@ class TupleNode(SequenceNode): self.is_literal = 1 else: SequenceNode.analyse_types(self, env, skip_children) - + self.type = tuple_type + def calculate_result_code(self): if len(self.args) > 0: error(self.pos, "Positive length tuples must be constructed.") -- 2.26.2