Ethan Furman added the comment:

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?

----------
nosy: +ethan.furman

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26514>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to