next up previous contents index
Next: Simple statements Up: Expressions and conditions Previous: Expression lists and

Summary

The following table summarizes the operator precedences in Python, from lowest precedence (least binding) to highest precedence (most binding). Operators in the same box have the same precedence. Unless the syntax is explicitly given, operators are binary. Operators in the same box group left to right (except for comparisons, which chain from left to right --- see above).



guido@cwi.nl