[Python-ideas] Adding "+" and "+=" operators to dict
Eric Snow
ericsnowcurrently at gmail.com
Fri Feb 13 03:25:24 CET 2015
On Feb 12, 2015 5:26 PM, "Eric Snow" <ericsnowcurrently at gmail.com> wrote:
>
> On Thu, Feb 12, 2015 at 11:21 AM, Thomas Kluyver <thomas at kluyver.me.uk>
wrote:
> > Or perhaps even a classmethod:
> >
> > dict.merged(a, b, c)
>
> A dict factory classmethod like this is the best proposal I've seen
> thus far. * It would be nice if the spelling were more succinct
> (that's where syntax is helpful). Imagine:
>
> some_func(**dict.merged(a, b, c))
Or just make "dict(a, b, c)" work.
-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150212/a1aa2965/attachment.html>
More information about the Python-ideas
mailing list