Message85442
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. |
|
| 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: <[email protected]> |
| 2009-04-04 22:47:57 | ncoghlan | link | issue2578 messages |
| 2009-04-04 22:47:56 | ncoghlan | create | |
|