fix incompatable tmp release between 0.9.5.1a and fast tuple unpacking
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 10 Jul 2007 09:55:12 +0000 (02:55 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 10 Jul 2007 09:55:12 +0000 (02:55 -0700)
Cython/Compiler/ExprNodes.py

index 18eb72c7fcddda24340316ad5a58871efc84db06..88d264a88a884613d8262d4776de1250a5b11d5b 100644 (file)
@@ -1857,13 +1857,13 @@ class SequenceNode(ExprNode):
     
     def allocate_target_temps(self, env, rhs):
         self.iterator.allocate_temps(env)
-        if rhs:
-            rhs.release_temp(env)
         for arg, node in zip(self.args, self.coerced_unpacked_items):
             node.allocate_temps(env)
             arg.allocate_target_temps(env, node)
             #arg.release_target_temp(env)
             #node.release_temp(env)
+        if rhs:
+            rhs.release_temp(env)
         self.iterator.release_temp(env)
     
 #      def release_target_temp(self, env):