This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients QuantumTim, alexandre.vassalotti, benjamin.peterson, exarkun, hotdog003, loewis
Date 2009-07-04.23:37:39
SpamBayes Score 7.825323e-07
Marked as misclassified No
Message-id <1246750661.33.0.613321389135.issue6410@psf.upfronthosting.co.za>
In-reply-to
Content
Tim Gordon wrote:
> __add__ is non-commutative for lists, tuples, strings etc. - perhaps 
> non-commutative wasn't quite what you were looking for :p.

Yeah, I was not clear in my explanation.

The thing is for lists, tuples, string and other ordered types
concatenation is a well-defined concept. Whereas for dictionaries is not
obvious what concatenation should do with duplicate keys. For example,
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}?

Also, it would be inconsistent the use of | for the union operation of sets.
History
Date User Action Args
2009-07-04 23:37:41alexandre.vassalottisetrecipients: + alexandre.vassalotti, loewis, exarkun, QuantumTim, benjamin.peterson, hotdog003
2009-07-04 23:37:41alexandre.vassalottisetmessageid: <1246750661.33.0.613321389135.issue6410@psf.upfronthosting.co.za>
2009-07-04 23:37:39alexandre.vassalottilinkissue6410 messages
2009-07-04 23:37:39alexandre.vassalotticreate