[docs] [issue28617] Why isn't "in" called a comparison operation?

wim glenn report at bugs.python.org
Fri Nov 4 18:08:35 EDT 2016


wim glenn added the comment:

Perhaps it's better to call a spade a spade here - if they're implemented as comparisons, then why not document them as comparisons?

A colleague has mentioned one point that sets `in` and `not in` apart from the other comparisons in the table: comparisons are generally made between objects of the same type (with the exception of numbers).  But membership "comparisons" are made between different types (with the exception of substring checks).  

Here is an alternate patch which leaves the table alone, but corrects the inaccuracy in the note.

----------
Added file: http://bugs.python.org/file45360/newpatch.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28617>
_______________________________________


More information about the docs mailing list