![](https://secure.gravatar.com/avatar/337fb6df3cf57f5b7f47e573f1558cfa.jpg?s=120&d=mm&r=g)
1 Mar
2019
1 Mar
'19
4:07 a.m.
On Thu, 28 Feb 2019 at 07:18, Serhiy Storchaka <storchaka@gmail.com> wrote:
[...]
I do not understand why we discuss a new syntax for dict merging if we already have a syntax for dict merging: {**d1, **d2} (which works with *all* mappings). Is not this contradicts the Zen?
FWIW there are already three ways for lists/sequences: [*x, *y] x + y x.extend(y) # in-place version We already have first and third for dicts/mappings, I don't see a big problem in adding a + for dicts, also this is not really a new syntax, just implementing couple dunders for a builtin class. So I actually like this idea. -- Ivan