From: Stefan Behnel Date: Sat, 28 Nov 2009 08:05:53 +0000 (+0100) Subject: fix recursive use of LetNodeMixin X-Git-Tag: 0.12.1~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd91609484dc252020dd6c204f03227b9ade0777;p=cython.git fix recursive use of LetNodeMixin --- diff --git a/Cython/Compiler/UtilNodes.py b/Cython/Compiler/UtilNodes.py index aad54ef0..81a50300 100644 --- a/Cython/Compiler/UtilNodes.py +++ b/Cython/Compiler/UtilNodes.py @@ -164,9 +164,9 @@ class LetNodeMixin: def setup_temp_expr(self, code): self.temp_expression.generate_evaluation_code(code) - self.result_in_temp = self.temp_expression.result_in_temp() + self._result_in_temp = self.temp_expression.result_in_temp() self.temp_type = self.temp_expression.type - if self.result_in_temp: + if self._result_in_temp: self.temp = self.temp_expression.result() else: self.temp_expression.make_owned_reference(code) @@ -176,7 +176,7 @@ class LetNodeMixin: self.lazy_temp.result_code = self.temp def teardown_temp_expr(self, code): - if not self.result_in_temp: + if not self._result_in_temp: if self.temp_type.is_pyobject: code.put_decref_clear(self.temp, self.temp_type) code.funcstate.release_temp(self.temp)