Fixed nasty bug in Node.clone discovered by aimlessly reading the code in a break...
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Sun, 20 Jul 2008 17:07:11 +0000 (19:07 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Sun, 20 Jul 2008 17:07:11 +0000 (19:07 +0200)
Cython/Compiler/Nodes.py

index 38a07b96e221e902d8a8feab514f7019b69cf637..6ad8ce4a2a49bead37cc5e65bb3ee6c111e355e6 100644 (file)
@@ -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: