Operator precedence problem

Marko Rauhamaa marko at pacujo.net
Mon Jun 6 14:49:43 EDT 2016

Random832 <random832 at fastmail.com>:
> A good way to remember it is that "and" is analogous to
> multiplication, and "or" is analogous to addition. Which is, I assume,
> _why_ they have the same precedence. (why ^ is between | and &,
> though, is a mystery to me.)

APL had a good way of remembering operator precedence: every operator
was equal and the evaluation order was from right to left.


More information about the Python-list mailing list