Author jdemeyer
Recipients Devin Jeanpierre, docs@python, jdemeyer, r.david.murray, rhettinger
Date 2019-03-27.06:35:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-03-27 06:35:00jdemeyersetrecipients: + jdemeyer, rhettinger, Devin Jeanpierre, r.david.murray, docs@python
2019-03-27 06:35:00jdemeyersetmessageid: <>
2019-03-27 06:35:00jdemeyerlinkissue29986 messages
2019-03-27 06:35:00jdemeyercreate