This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients ethan.furman, magu
Date 2016-03-08.22:10:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457475009.11.0.571928483653.issue26514@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-03-08 22:10:09ethan.furmansetrecipients: + ethan.furman, magu
2016-03-08 22:10:09ethan.furmansetmessageid: <1457475009.11.0.571928483653.issue26514@psf.upfronthosting.co.za>
2016-03-08 22:10:09ethan.furmanlinkissue26514 messages
2016-03-08 22:10:09ethan.furmancreate