mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
15 lines
277 B
Python
15 lines
277 B
Python
# Parenthesis everywhere because
|
|
# unparenthesized assignment expressions are prohibited
|
|
# at the top level of an expression statement
|
|
|
|
(x := y := z := 0)
|
|
|
|
(a[i] := x)
|
|
(self.rest := [])
|
|
|
|
(p: Optional[int] := None)
|
|
|
|
(b := -)
|
|
(x := )
|
|
|
|
x = (b[j] := z) = 'spam' # z is a reference |