Jeroen Demeyer <j.deme...@ugent.be> added the comment:

The consensus is clearly to return NotImplemented in this case, also because 
that's what most builtins do, like the object() example that you mentioned.

However, I would rather keep that note and change it to say return 
NotImplemented. It's an important difference between tp_richcompare and the 6 
Python methods __eq__ and friends. Explicitly saying what do you if you only 
want __eq__ and __ne__ but no other operators (which is not exceptional at all) 
looks useful to me.

----------
nosy: +jdemeyer

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

Reply via email to