Raymond Hettinger <raymond.hettin...@gmail.com> added the comment: It may seem weird, but a "membership operator" is a kind of "comparison operator".¹ They can even participate in chaining, 'a < b in s < c` is equivalent to `(a < b) and (b in s) and (b < c)`.
I'm propose this new wording to mention the concept of "membership": "The comparison operators `in` and `not in` are membership tests that determine whether a value is in (or not in) a container." ¹ https://docs.python.org/3/reference/expressions.html#comparisons ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46270> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com