comparison Python/thread.c @ 39753:8dcb882ec3e1 legacy-trunk

Bug #1520864 (again): unpacking singleton tuples in list comprehensions and generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking. This code should be refactored to eliminate the duplication. I'm sure the listcomp/genexpr code can be refactored. I'm not sure if the for loop can re-use any of the same code though. Will backport to 2.5 (the only place it matters).
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 05 Sep 2006 03:53:08 +0000
parents 7c09b66f04bd
children eefe4450f773 132d908471c8
comparison
equal deleted inserted replaced
39752:4c85ce70426e 39753:8dcb882ec3e1