[issue25542] tuple unpacking on assignment should be lazy for unpacked generators
New submission from Mario Wenzel: if I have an assignment a = then a is the generator. But if I do any kind of unpacking *a, = # a list of all items a, *aa = # first item in a, list of rest in as If the right-hand side is a generator expression, I would expect that a, *aa unpacks the
[issue25542] tuple unpacking on assignment should be lazy for unpacked generators
Mario Wenzel added the comment: You are right. I didn't even know head, *middle, end = worked. Thanks -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.