lwzm
3/25/2014 - 1:45 PM

test.py

a, b, *c = 1,2,3,4,5
*a, b = 1,2,3,4
a, *b, c = 1,2,3,4,5

[i for i, *_ in [[0], [1, 2], [3, 4, 5]]]

lst = [(0,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,)]
assert [i for i, in lst] ==  [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]