From f5ef2cc1bb1585104cf036d61b2d039baad2f073 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 9 Jan 2009 08:44:58 +0100 Subject: [PATCH] init temp allocation error checker to None to fix AttributeError --- 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 8f5da38e..6335675a 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -612,7 +612,8 @@ class RemoveAllocateTemps(type): class NewTempExprNode(ExprNode): backwards_compatible_result = None temp_code = None - + old_temp = None # error checker for multiple frees etc. + # Do not enable this unless you are trying to make all ExprNodes # NewTempExprNodes (child nodes reached via recursion may not have # transferred). -- 2.26.2