Mark Dickinson <dicki...@gmail.com> added the comment:

> In the section "Comparison operators", all mentions of "bitwise" should be 
> "binary".

Should they? The corresponding line from 
https://docs.python.org/3/reference/expressions.html#comparisons is

    comparison    ::=  or_expr (comp_operator or_expr)*

which seems to match:

    comparison[expr_ty]:
        | a=bitwise_or b=compare_op_bitwise_or_pair+ { ... snipped ... }
        | bitwise_or

from the "Comparisons operators" section of the grammar. The 
next-higher-precedence operation after comparison operators is bitwise or, and 
the occurrences of "bitwise_or" look correct to me in this section.

We could retitle "Comparisons operators" to "Comparison operators", though.

> The section "Logical operators" should be retitled "Bitwise operators".

Agreed.

----------
nosy: +mark.dickinson

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

Reply via email to