From 3819ab7fc64fbc63cc7fc627ef6434bd3399ffc5 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 27 Jan 2011 20:48:27 +0100 Subject: [PATCH] TupleNode is always simple --- Cython/Compiler/ExprNodes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 0f019829..aad7acaf 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -3997,6 +3997,10 @@ class TupleNode(SequenceNode): self.is_temp = 0 self.is_literal = 1 + def is_simple(self): + # either temp or constant => always simple + return True + def calculate_result_code(self): if len(self.args) > 0: return self.result_code -- 2.26.2