Steven D'Aprano <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue44758>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com