Operator |
Description |
( ) |
Grouping |
** |
Exponetiation (raise to the power) |
~, +, - |
Complement, unary plus and minus (method names for the last two are +@
and -@) |
*, /, %, // |
Multiply, divide, modulo, and floor division |
+, - |
Addition and Subtraction |
>>, << |
Right and left bitwise shift |
& |
Bitwise 'AND' |
^ |
Bitwise exclusive 'OR' |
| |
Bitwise 'OR' |
in, not in, is, is not, <=, >, >=, !=, == |
Comparison operators, equality operators, membership and identity operators |
not |
Boolean 'NOT' |
and |
Boolean 'AND' |
or |
Boolean 'OR' |
=, %=, /=, //=, -=, +=, *=, **=, |
Assignment operators |