This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ET, serhiy.storchaka
Date 2021-09-17.09:06:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631869582.32.0.950104542636.issue45230@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-09-17 09:06:22serhiy.storchakasetrecipients: + serhiy.storchaka, ET
2021-09-17 09:06:22serhiy.storchakasetmessageid: <1631869582.32.0.950104542636.issue45230@roundup.psfhosted.org>
2021-09-17 09:06:22serhiy.storchakalinkissue45230 messages
2021-09-17 09:06:22serhiy.storchakacreate