def allocate_target_temps(self, env, rhs):
self.iterator.allocate_temps(env)
- for arg, node in zip(self.args, self.coerced_unpacked_items):
+ for node in self.coerced_unpacked_items:
node.allocate_temps(env)
- arg.allocate_target_temps(env, None)
#arg.release_target_temp(env)
#node.release_temp(env)
+ for arg in self.args:
+ arg.allocate_target_temps(env, None)
if rhs:
rhs.release_temp(env)
self.iterator.release_temp(env)
--- /dev/null
+"""
+>>> func()
+0 0
+0
+0
+1 1
+1
+1
+2 2
+2
+2
+>>> func2()
+"""
+
+def g():
+ return ((3, 2), 1, 0)
+
+def func2():
+ (a, b), c, d = g()
+
+def func():
+ for (a, b),c ,d in zip(zip(range(3), range(3)), range(3), range(3)):
+ print a, b
+ print c
+ print d