[Python-ideas] Dict(x, y) -> Dict(zip(x, y))

Koos Zevenhoven k7hoven at gmail.com
Tue Feb 16 17:03:52 EST 2016


On Feb 15, 2016 02:31, "Oscar Benjamin" <oscar.j.benjamin at gmail.com> wrote:
>
> I often find myself writing dict(zip(x, y)). Maybe that's just me or
> maybe not but I would like it if it were possible to spell that simply
> as dict(x, y).
>

Not sure how useful this is, but what about {*keys : *values} ?

-- Koos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160217/822cf180/attachment-0001.html>


More information about the Python-ideas mailing list