Message85442
| 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.923032e-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:59 | ncoghlan | set | recipients:
+ ncoghlan, gvanrossum, skip.montanaro, rhettinger, gregory.p.smith, purcell, pitrou, giampaolo.rodola, pupeno, benjamin.peterson, gpolo, michael.foord |
| 2009年04月04日 22:47:58 | ncoghlan | set | messageid: <1238885278.19.0.0910258085949.issue2578@psf.upfronthosting.co.za> |
| 2009年04月04日 22:47:57 | ncoghlan | link | issue2578 messages |
| 2009年04月04日 22:47:56 | ncoghlan | create |
|