[Python-ideas] Unpacking a dict
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)
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas