Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
BTW, chained comparisons are usually written like this: 0 <= x <= 100 a == b == c spam is eggs is None or similar. They do look weird and confusing when they include the `in` operator. Best not to write chained comparisons involving the `in` operator or other strange combinations. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44758> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com