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 Giacomo.Alzetta
Recipients Balakrishnan.B, Giacomo.Alzetta, docs@python, r.david.murray, rhettinger, steven.daprano, stutzbach
Date 2014-03-13.07:55:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394697340.64.0.303811655417.issue20902@psf.upfronthosting.co.za>
In-reply-to
Content
I asked this because, for example, in Haskell it *is* a well-defined behaviour (see its documentation at: http://hackage.haskell.org/package/containers-0.5.4.0/docs/Data-Set.html): the left operand is preferred by all operations.

In fact, working with Haskell, I also have used such behaviour in the past. For example when writing a simple type-checker it's quite convenient to use such behaviour when handling environments where you want inner blocks to hide outer variables. Not defining such behaviour means that you must re-implement the wheel in order to achieve the correct behaviour.

In any case, this information should be made explicit in the docs, whether we want to make the behaviour defined or not.
History
Date User Action Args
2014-03-13 07:55:40Giacomo.Alzettasetrecipients: + Giacomo.Alzetta, rhettinger, stutzbach, steven.daprano, r.david.murray, docs@python, Balakrishnan.B
2014-03-13 07:55:40Giacomo.Alzettasetmessageid: <1394697340.64.0.303811655417.issue20902@psf.upfronthosting.co.za>
2014-03-13 07:55:40Giacomo.Alzettalinkissue20902 messages
2014-03-13 07:55:40Giacomo.Alzettacreate