[Python-ideas] Dict joining using + and +=

Stefan Behnel stefan_ml at behnel.de
Fri Mar 1 10:34:31 EST 2019


Eric V. Smith schrieb am 01.03.19 um 15:49:
> I understand Inada to be saying that each value on the LHS (as shown above)
> affects the result on the RHS. That's the case with addition of ints and
> other types, but not so with the proposed dict addition. As he says, the
> {a:1} doesn't affect the result. The result would be the same if this key
> wasn't present in the first dict, or if the key had a different value.
> 
> This doesn't bother me, personally.

+1

Stefan



More information about the Python-ideas mailing list