From 24e3fe16eff667df013e644f7330d5cb8cfef587 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Sun, 20 Jul 2008 19:07:11 +0200 Subject: [PATCH] Fixed nasty bug in Node.clone discovered by aimlessly reading the code in a break... --- Cython/Compiler/Nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 38a07b96..6ad8ce4a 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -102,7 +102,7 @@ class Node(object): for attrname in result.child_attrs: value = getattr(result, attrname) if isinstance(value, list): - setattr(result, attrname, value) + setattr(result, attrname, [x for x in value]) return result @@ -3307,6 +3307,7 @@ class TryExceptStatNode(StatNode): self.gil_check(env) def analyse_expressions(self, env): + self.body.analyse_expressions(env) self.cleanup_list = env.free_temp_entries[:] for except_clause in self.except_clauses: -- 2.26.2