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

Chris Angelico rosuav at gmail.com
Sat Apr 13 20:16:14 EDT 2019


On Sun, Apr 14, 2019 at 10:15 AM Juancarlo Añez <apalala at gmail.com> wrote:
>
>
>
> 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.
>

I believe it's already been mentioned.

ChrisA


More information about the Python-ideas mailing list