Oct. 21, 2019
7:31 p.m.
On Tue, Oct 22, 2019 at 12:03:02AM +0200, Jan Greis wrote:
There's one reason for + which I feel is being missed (though I think someone may have briefly mentioned it last time this topic was brought up): If we look at the behaviour of dict literals, adding two dicts actually behaves like concatenation in the sense that
{"key1": "val1", "key2": "val2", "key1": "val3"} == {"key1": "val3", "key2": "val2"}
That's in the PEP. https://www.python.org/dev/peps/pep-0584/#id26 -- Steven