Message 244161 - Python tracker
I prefer to unpack into square brackets in general because it is a mnemonic for the star argument being a list: >>> (a, *b) = range(3) >>> a 0 >>> b # A list, even though it was unpacked using tuple-like syntax [1, 2]
I prefer to unpack into square brackets in general because it is a mnemonic for the star argument being a list: >>> (a, *b) = range(3) >>> a 0 >>> b # A list, even though it was unpacked using tuple-like syntax [1, 2]