[Python-ideas] Adding "+" and "+=" operators to dict

random832 at fastmail.us random832 at fastmail.us
Thu Feb 12 15:46:51 CET 2015


On Wed, Feb 11, 2015, at 23:06, Greg wrote:
> I think associativity is the property in question, and it
> does hold for string and tuple concatenation.
> 
> Dict addition could be made associative by raising an
> exception on duplicate keys.

Why isn't it associative otherwise?


More information about the Python-ideas mailing list