Unpacking generalizations
Unpacking generalizations Question: PEP 448 — Additional Unpacking Generalizations allowed: >>> LOL = [[1, 2], [‘three’]] >>> [*LOL[0], *LOL[1]] [1, 2, ‘three’] Alright! Goodbye itertools.chain. Never liked you much anyway. >>> [*L for L in LOL] File "<ipython-input-21-e86d2c09c33f>", line 1 [*L for L in LOL] ^ SyntaxError: iterable unpacking cannot be used in comprehension Oh. …