From: Stefan Behnel Date: Thu, 27 Jan 2011 19:48:27 +0000 (+0100) Subject: TupleNode is always simple X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3819ab7fc64fbc63cc7fc627ef6434bd3399ffc5;p=cython.git TupleNode is always simple --- 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