Author ncoghlan
Recipients benjamin.peterson, giampaolo.rodola, gpolo, gregory.p.smith, gvanrossum, michael.foord, ncoghlan, pitrou, pupeno, purcell, rhettinger, skip.montanaro
Date 2009-04-04.22:47:56
SpamBayes Score 1.92303e-07
Marked as misclassified No
Message-id <1238885278.19.0.0910258085949.issue2578@psf.upfronthosting.co.za>
In-reply-to
Content
No, because the rich comparison docs explicitly state that the
interpreter makes no assumptions about the relationship between != and
== (or, more precisely, __eq__ and __ne__).

"""There are no implied relationships among the comparison operators.
The truth of x==y does not imply that x!=y is false. """

(from http://docs.python.org/reference/datamodel.html#basic-customization)

If someone is writing unit tests for comparison methods they should
explicitly test all 6 operations.
History
Date User Action Args
2009-04-04 22:47:59ncoghlansetrecipients: + ncoghlan, gvanrossum, skip.montanaro, rhettinger, gregory.p.smith, purcell, pitrou, giampaolo.rodola, pupeno, benjamin.peterson, gpolo, michael.foord
2009-04-04 22:47:58ncoghlansetmessageid: <1238885278.19.0.0910258085949.issue2578@psf.upfronthosting.co.za>
2009-04-04 22:47:57ncoghlanlinkissue2578 messages
2009-04-04 22:47:56ncoghlancreate