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 xtreak
Recipients Kshitish, paul.moore, steve.dower, tim.golden, xtreak, zach.ware
Date 2020-11-25.12:32:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606307524.37.0.954802120568.issue42462@roundup.psfhosted.org>
In-reply-to
Content
Please don't attach images since text will have better accessibility for readers. The expression is as below and is a result of operator precedence : 
https://docs.python.org/3/reference/expressions.html#operator-precedence

>>> 7+3==10 | 7+1==8 and not(10!=10)
False


>>> (7+3) == (10 | (7 +1)) == 8
False
>>> (7+3) == (10 | (7 +1)) == 10
True

It would be good to use parens to indicate explicit bracing that helps in readability and understanding it in future for complex operations in 1 line.

Please refrain from creating multiple issues as explained in the other issues using stack overflow, python tutor, etc will be better forums to ask for help

https://bugs.python.org/issue42460
https://bugs.python.org/issue42456
https://bugs.python.org/issue42459
History
Date User Action Args
2020-11-25 12:32:04xtreaksetrecipients: + xtreak, paul.moore, tim.golden, zach.ware, steve.dower, Kshitish
2020-11-25 12:32:04xtreaksetmessageid: <1606307524.37.0.954802120568.issue42462@roundup.psfhosted.org>
2020-11-25 12:32:04xtreaklinkissue42462 messages
2020-11-25 12:32:04xtreakcreate