[Python-ideas] Unpacking a dict
Ethan Furman
ethan at stoneleaf.us
Thu May 26 11:29:31 EDT 2016
On 05/25/2016 11:24 PM, Greg Ewing wrote:
> Chris Angelico wrote:
>> I hope there doesn't end up being a confusion between mapping
>> unpacking and set display. Sets are a bit of an odd duck; are they
>> like lists only unordered, or like mappings only without values?
>
> Let's just hope nobody says they want set unpacking...
We already have that:
--> a, b, c = {7, 99, 22}
--> a, b, c
(99, 22, 7)
Of course, the order gets all messed up... ;)
--
~Ethan~
More information about the Python-ideas
mailing list