[Python-ideas] Unpacking a dict

Michael Selik michael.selik at gmail.com
Thu May 26 00:47:47 EDT 2016


On Thu, May 26, 2016 at 12:39 AM <tritium-list at sdamon.com> wrote:

> I am -1 on the whole idea.  What is either asking for the identifier being
> assigned to having semantic meaning in the language, something we do
> not have anywhere else.


No? Tuple unpacking has semantic meaning for the left-hand side. Or did I
misunderstand you?


> a, b, c, *r = mapping.values()
>

Unless it's an OrderedDict *and* I know the order, I wouldn't want to do
that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160526/10a4d3f2/attachment.html>


More information about the Python-ideas mailing list