diff options
| author | Damien George | 2020-06-16 21:42:44 +1000 |
|---|---|---|
| committer | Damien George | 2020-06-16 22:02:24 +1000 |
| commit | 178395031157f61af5426add2de1d76d91440b21 (patch) | |
| tree | 4f4898ff7f2e707e5b5e4a7245422b07689fb338 /tests/cmdline | |
| parent | 0fd91e39b1711772c88cfe4e0aaf817fe3387ba6 (diff) | |
py/compile: Implement PEP 572, assignment expressions with := operator.
The syntax matches CPython and the semantics are equivalent except that,
unlike CPython, MicroPython allows using := to assign to comprehension
iteration variables, because disallowing this would take a lot of code to
check for it.
The new compile-time option MICROPY_PY_ASSIGN_EXPR selects this feature and
is enabled by default, following MICROPY_PY_ASYNC_AWAIT.
Diffstat (limited to 'tests/cmdline')
| -rw-r--r-- | tests/cmdline/cmd_parsetree.py.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cmdline/cmd_parsetree.py.exp b/tests/cmdline/cmd_parsetree.py.exp index 18986318a..42a8228fb 100644 --- a/tests/cmdline/cmd_parsetree.py.exp +++ b/tests/cmdline/cmd_parsetree.py.exp @@ -3,7 +3,7 @@ tok(4) [ 4] rule(22) (n=4) id(i) -[ 4] rule(44) (n=1) +[ 4] rule(45) (n=1) NULL [ 5] rule(8) (n=0) NULL |
