Message261386
The following behaviour is from 3.5:
--> class Huh:
... def __eq__(self, other):
... return other == 'blah'
...
--> h = Huh()
--> h == 'ew'
False
--> h != 'ew'
True
--> h == 'blah'
True
--> h != 'blah'
False
Which seems to be exactly what you want. Do you have a counter-example? |
|
Date |
User |
Action |
Args |
2016-03-08 22:10:09 | ethan.furman | set | recipients:
+ ethan.furman, magu |
2016-03-08 22:10:09 | ethan.furman | set | messageid: <1457475009.11.0.571928483653.issue26514@psf.upfronthosting.co.za> |
2016-03-08 22:10:09 | ethan.furman | link | issue26514 messages |
2016-03-08 22:10:09 | ethan.furman | create | |
|