[Python-ideas] PEP: Dict addition and subtraction
Rhodri James
rhodri at kynesim.co.uk
Wed Mar 6 06:52:26 EST 2019
On 06/03/2019 10:29, Ka-Ping Yee wrote:
> len(dict1 + dict2) does not equal len(dict1) + len(dict2), so using the +
> operator is nonsense.
I'm sorry, but you're going to have to justify why this identity is
important. Making assumptions about length where any dictionary
manipulations are concerned seems unwise to me, which makes a nonsense
of your claim that this is nonsense :-)
--
Rhodri James *-* Kynesim Ltd
More information about the Python-ideas
mailing list