blob: cb909b698f13fa5168d0dd5c0628607bd64c23e9 [file] [log] [blame] [edit]
# Binary operators
foo=bar+baz
foo=bar-baz
foo=bar*baz
foo=bar/baz
foo=bar//baz
foo=bar%baz
foo=bar|baz
# If-else operator precedence
- f(1) if not a else 2+3
# Logic operators
not foo<bar>baz<=foo>=bar!=baz in foo==bar or baz
x = "abc" in copts or "def" in copts
x2 = "abc" not in copts and "def" not in copts
y = "abc" in (copts or []) == False
a = 1 + 2 if 3 + 4 else 5 + 6
# Augmented assignments
foo+=bar
foo-=bar
foo*=bar
foo/=bar
foo//=bar
foo%=bar
foo|=bar