[Python-ideas] Syntax for allowing extra keys when unpacking a dict as keyword arguments

Juancarlo Añez apalala at gmail.com
Sat Apr 13 20:15:35 EDT 2019

On Sat, Apr 13, 2019 at 9:02 AM Chris Angelico <rosuav at gmail.com> wrote:

> Would be really nice to be able to spell this as a dict/set intersection.
> func(**(d & {'a', 'b', 'c'}))

That would be _very_ consistent with the ongoing discussions about
operators over dicts.

Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190413/e265f562/attachment.html>

More information about the Python-ideas mailing list