mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2025-07-31 18:30:09 +02:00
2
README.md
vendored
2
README.md
vendored
@@ -259,7 +259,7 @@ This saved one line of code, and implicitly prevented invoking `some_func` twice
|
||||
|
||||
- As usual, parenthesizing of an expression containing `=` operator is not allowed. Hence the syntax error in `(a, b = 6, 9)`.
|
||||
|
||||
- The syntax of the Walrus operator is of the form `NAME: expr`, where `NAME` is a valid identifier, and `expr` is a valid expression. Hence, iterable packing and unpacking are not supported which means,
|
||||
- The syntax of the Walrus operator is of the form `NAME:= expr`, where `NAME` is a valid identifier, and `expr` is a valid expression. Hence, iterable packing and unpacking are not supported which means,
|
||||
|
||||
- `(a := 6, 9)` is equivalent to `((a := 6), 9)` and ultimately `(a, 9) ` (where `a`'s value is 6')
|
||||
|
||||
|
Reference in New Issue
Block a user