On Feb 12, 2015 6:41 PM, "Ethan Furman" <ethan@stoneleaf.us> wrote:
>
> On 02/12/2015 04:30 PM, Ethan Furman wrote:
> > On 02/12/2015 04:26 PM, Eric Snow wrote:
> >> On Thu, Feb 12, 2015 at 11:21 AM, Thomas Kluyver <thomas@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))
> >
> > That looks an awful lot like
> >
> >     some_func(**chainmap(a, b, c))
>
> or maybe that should be
>
>      some_func(**chainmap(c, b, a))
>
> ?

Right.  With chainmap leftmost wins.

-eric

>
> Whatever we choose, if we choose anything, should keep the rightmost wins behavior.
>
> --
> ~Ethan~
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/