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
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/UWIBJ6YSDT2S3GTFRK3T2NNA4JAJXKCO/
Code of Conduct: http://python.org/psf/codeofconduct/