Author Devin Jeanpierre
Recipients Devin Jeanpierre, docs@python
Date 2017-04-04.23:01:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491346882.65.0.198052312144.issue29986@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, forgot to link to docs because I was copy-pasting from the PR:

https://docs.python.org/2/c-api/typeobj.html#c.PyTypeObject.tp_richcompare

https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_richcompare

> Note: If you want to implement a type for which only a limited set of comparisons makes sense (e.g. == and !=, but not < and friends), directly raise TypeError in the rich comparison function.
History
Date User Action Args
2017-04-04 23:01:22Devin Jeanpierresetrecipients: + Devin Jeanpierre, docs@python
2017-04-04 23:01:22Devin Jeanpierresetmessageid: <1491346882.65.0.198052312144.issue29986@psf.upfronthosting.co.za>
2017-04-04 23:01:22Devin Jeanpierrelinkissue29986 messages
2017-04-04 23:01:22Devin Jeanpierrecreate