[Python-ideas] Adding "+" and "+=" operators to dict
Eric Snow
ericsnowcurrently at gmail.com
Fri Feb 13 03:21:56 CET 2015
On Feb 12, 2015 6:25 PM, "MRAB" <python at mrabarnett.plus.com> wrote:
> How about making d1 | d2 return an iterator?
>
> You could then merge dicts with no intermediate dict:
>
> merged = dict(a | b | c)
>
> some_func(**a | b | c)
>
I like that!
-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150212/e9002746/attachment.html>
More information about the Python-ideas
mailing list