Message402012
No, it is a feature.
Python allows you to chain comparison operations, so you can write 0 < x <= 10 which is equivalent to (0 < x) and (x <= 10).
And "is" is a comparison operation. So `3==3 is not True` is equivalent to `(3==3) and (3 is not True)` which is evaluated to `True and True` which is equal to True. |
|
Date |
User |
Action |
Args |
2021-09-17 09:06:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ET |
2021-09-17 09:06:22 | serhiy.storchaka | set | messageid: <1631869582.32.0.950104542636.issue45230@roundup.psfhosted.org> |
2021-09-17 09:06:22 | serhiy.storchaka | link | issue45230 messages |
2021-09-17 09:06:22 | serhiy.storchaka | create | |
|