<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 4, 2019, 8:30 AM Serhiy Storchaka <<a href="mailto:storchaka@gmail.com">storchaka@gmail.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But is merging two dicts a common enough problem that needs introducing <br>
an operator to solve it? I need to merge dicts maybe not more than one <br>
or two times by year, and I am fine with using the update() method. <br>
Perhaps {**d1, **d2} can be more appropriate in some cases, but I did not encounter such cases yet.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Like other folks in the thread, I also want to merge dicts three times per year. And every one of those times, itertools.ChainMap is the right way to do that non-destructively, and without copying.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>