Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45230>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to