[Python-ideas] PEP: Dict addition and subtraction
greg.ewing at canterbury.ac.nz
Wed Mar 6 17:30:32 EST 2019
Ka-Ping Yee wrote:
> len(dict1 + dict2) does not equal len(dict1) + len(dict2), so using the
> + operator is nonsense.
You might as well say that using the + operator on vectors is
nonsense, because len(v1 + v2) is not in general equal to
len(v1) + len(v2).
Yet mathematicians are quite happy to talk about "addition"
More information about the Python-ideas