Core Python Programming (2nd Edition)
| Table B.14 represents the complete set of Python operators and to which standard types they apply. The operators are sorted from highest-to-lowest precedence, with those sharing the same shaded group having the same priority.
[a] May also include corresponding augmented assignment operators. [b] Operations involving Boolean types will be performed on the operands as ints. [c] (Both) set types new in Python 2.4. |