Copyright (C) 2000-2012 |
Whole document tree
|
Operator | Description |
---|---|
lambda | Lambda expression |
or | Boolean OR |
and | Boolean AND |
not x | Boolean NOT |
in, not in | Membership tests |
is, is not | Identity tests |
< , <= , > , >= ,
<> , != , == |
Comparisons |
| |
Bitwise OR |
^ |
Bitwise XOR |
& |
Bitwise AND |
< < , > > |
Shifts |
+ , - |
Addition and subtraction |
* , / , % |
Multiplication, division, remainder |
+x , -x |
Positive, negative |
~x |
Bitwise not |
** |
Exponentiation |
x.attribute |
Attribute reference |
x[index] |
Subscription |
x[index:index] |
Slicing |
f(arguments...) |
Function call |
(expressions...) |
Binding or tuple display |
[expressions...] |
List display |
{key:datum...} |
Dictionary display |
`expressions...` |
String conversion |