Chris Angelico writes:

 > >>> {"a":1}+{"b":2}

 > It would make sense for this to result in {"a":1,"b":2}.

The test is not "does this sometimes make sense?"  It's "does this
ever result in nonsense, and if so, do we care?"

Here, addition is usually commutative.  Should {'a':1}+{'a':2} be the
same as, or different from, {'a':2}+{'a':1}, or should it be an error?
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to