Skip to content

Parser precedence for bitwise binary operators doesn't match Python

Bitwise operators should get higher precedence than comparisons, but in the parser they are lower.

Affected operators:

  • bitwise or ('|')
  • bitwise and ('~')
  • bitwise xor ('^')