Author r.david.murray
Recipients Devin Jeanpierre, docs@python, r.david.murray, rhettinger
Date 2017-04-04.23:32:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491348723.99.0.753020484877.issue29986@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation is technically correct, as far as I can see.  Issue 8743 is not about disallowing certain comparison operations, but rather incorrectly implementing the earlier sentence in that same doc section: "If the comparison is undefined, it must return Py_NotImplemented".  Perhaps the wording should be changed so that instead of saying "only a limited set of comparisons makes sense" it says "if you wish to disallow certain comparison operations while allowing others".  It should also probably be demoted from being a '.. note', since it is, as you note, an exceptional case, not a common one.

But you might be right that it would be better to delete it altogether, since it is generally better to let the comparison machinery raise the error if none of the types implements the comparison...what would be the rationale for a blanket *dis*allowing of a particular comparison operation?  

Let's see what Raymond thinks.
History
Date User Action Args
2017-04-04 23:32:04r.david.murraysetrecipients: + r.david.murray, rhettinger, Devin Jeanpierre, docs@python
2017-04-04 23:32:03r.david.murraysetmessageid: <1491348723.99.0.753020484877.issue29986@psf.upfronthosting.co.za>
2017-04-04 23:32:03r.david.murraylinkissue29986 messages
2017-04-04 23:32:03r.david.murraycreate