On Sat, Apr 13, 2019 at 11:00 PM Juancarlo Añez <[email protected]> wrote: > func(**{k:v for k, v in d.items() if k in ('a','b','c')) >
Would be really nice to be able to spell this as a dict/set intersection.
func(**(d & {'a', 'b', 'c'}))
ChrisA
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
