[Python-ideas] Unpacking a dict
Koos Zevenhoven
k7hoven at gmail.com
Thu May 26 12:56:45 EDT 2016
On May 26, 2016 7:52 PM, "Sven R. Kunze" <srkunze at mail.de> wrote:
>
> On 26.05.2016 02:14, Ethan Furman wrote:
>>
>>
>>> or, perhaps:
>>>
>>> 'a' as x, 'b' as y, 'c' as z = some_dict
>>>
>>> which would cater for keys that aren't valid as identifiers.
>>
>>
>> That probably makes more sense, especially since it's already the
rare(r) case of needing/wanting to rename the keys.
>
>
> What do you think about?
>
> 'a': x, 'b': y, 'c': z = some_dict
>
Maybe keep that for potential non-comment type hints in the future...
-- Koos (mobile)
> Best,
> Sven
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160526/5511eb83/attachment.html>
More information about the Python-ideas
mailing list