[issue6410] Dictionaries should support __add__

Terry J. Reedy report at bugs.python.org
Fri Jul 10 23:01:33 CEST 2009


Terry J. Reedy <tjreedy at udel.edu> added the comment:

> what would be the result of {"a": 1, "b": 2} + {"a": 2, "b": 1}?
> Should it be {"a": 1, "b": 2} or {"a": 2, "b": 1}?

or {"a":[1,2], "b":[1,2]}
As I remember, Guido rejected because of this ambiguity.

----------
nosy: +tjreedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6410>
_______________________________________


More information about the Python-bugs-list mailing list