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 v+python
Recipients docs@python, ncoghlan, v+python
Date 2011-04-28.05:32:53
SpamBayes Score 1.4373696e-05
Marked as misclassified No
Message-id <1303968774.09.0.597738647828.issue11945@psf.upfronthosting.co.za>
In-reply-to
Content
Bertrand Meyer's exposition is flowery, and he is a learned man, but the basic argument he makes is:

Reflexivity of equality  is something that we expect for any data type, and it seems hard to justify that a value is not equal to itself. As to assignment, what good can it be if it does not make the target equal to the source value?  

The argument is flawed: now that NaN exists, and is not equal to itself in value, there should be, and need be, no expectation that assignment elsewhere should make the target equal to the source in value.  It can, and in Python, should, make them match in identity (is) but not in value (==, equality).

I laud the idea of adding to definition of reflexive equality to the glossary.  However, I think it is presently a bug that a list containing a NaN value compares equal to itself.  Yes, such a list should have the same identity (is), but should not be equal.
History
Date User Action Args
2011-04-28 05:32:54v+pythonsetrecipients: + v+python, ncoghlan, docs@python
2011-04-28 05:32:54v+pythonsetmessageid: <1303968774.09.0.597738647828.issue11945@psf.upfronthosting.co.za>
2011-04-28 05:32:53v+pythonlinkissue11945 messages
2011-04-28 05:32:53v+pythoncreate