9 Jun
2017
9 Jun
'17
3:15 p.m.
No. You're right. I don't know why I thought strings were treated
differently.
On Jun 9, 2017 7:47 AM, "Mark E. Haase"
On Thu, Jun 8, 2017 at 4:27 PM, Abe Dillon
wrote: a, *b = 1, 2, 3, 4, 5 # NOTE: Most itterables unpack starred variables as a list type(b)
a, *b = "except strings" type(b)
I was just playing around with this, and on Python 3.5.3, I see strings unpacked as lists:
first, *rest = 'spam' type(rest)
Am I doing something different, or is this something that changed in the language?