Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Karthikeyan, I think there is a flaw in your example. The good __eq__ should 
return NotImplemented instead of False for other types. This wil allow the 
right operand's __eq__ to play.

----------
nosy: +serhiy.storchaka

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

Reply via email to