[Python-ideas] dict.merge(d1, d2, ...) (Counter proposal for PEP 584)

Jeroen Demeyer J.Demeyer at UGent.be
Thu Mar 21 12:13:20 EDT 2019


On 2019-03-21 17:11, Guido van Rossum wrote:
> I don't find it easy to understand or remember that d1.update(d2)
> modifies d1 in place, while d1.merge(d2) first copies d1.

That would be an advantage with + versus += (or | versus |=).


More information about the Python-ideas mailing list