[issue38060] precedence (relational, logical operator)not working with single value

Tim Peters report at bugs.python.org
Tue Sep 10 23:17:52 EDT 2019


Tim Peters <tim at python.org> added the comment:

I don't believe that would improve the docs, but suit yourself.  This is hardly a FAQ, but instead a peculiar case where, for whatever reason, someone is saying "I'm puzzled by what `or` does, but didn't read the docs for `or`".  Most people confused by `or` almost certainly _do_ read the docs for `or` ;-)

As is, in the precedence table the word "or" is already a direct hyperlink to the section _about_ "or", and similarly for "and".  It can't be made any easier than that to find the whole story.

If you do want to pursue adding more cruft to the docs, note that the same would be needed for the `- if - else -` operator too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38060>
_______________________________________


More information about the Python-bugs-list mailing list