[Numpy-discussion] precedence of '&' and '>' operators
oliphant at ee.byu.edu
Mon Mar 27 16:24:02 CST 2006
Michael Sorich wrote:
> It seems that the '&' operator has a higher precedence than a
> comparison operator such as '>'. This does not seem so intuitive to
> me. Is this correct?
Yes, this is correct. See
The problem really is that "and" (which has lower precedence) does not
allow being over-written. So, we must use the bit-wise operator.
More information about the Numpy-discussion