We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

Binary bit-wise operations

Each of the three bitwise operations has a different priority level:

and_expr ::= [ shift_expr][1] | [and_expr][2] “&” [ shift_expr][1] xor_expr ::= [ and_expr][2] | [xor_expr][3] “^” [ and_expr][2] or_expr ::= [ xor_expr][3] | [or_expr][4] “|” [ xor_expr][3]

See operator-and.

See operator-xor.

See operator-or.