Tim Peters <t...@python.org> added the comment:
Orion, you're using the interface as intended :-) While it's too late to change now, if Python started over from scratch I'd argue to leave "in" and "not in" out of this feature - chaining them is _usually_ an unintended behavior. Then again, sometimes it is slightly useful. For example, if I want to know if `n` is in a set of primes, but isn't even, if 2 != n in some_set_of_primes: does the job succinctly. But not really "Pythonically", since even experienced Python programmers may scratch their heads when reading it :-( ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39746> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com