summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytes_construct_array.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-06-16 21:42:44 +1000
committerDamien George <damien@micropython.org>2020-06-16 22:02:24 +1000
commit178395031157f61af5426add2de1d76d91440b21 (patch)
tree4f4898ff7f2e707e5b5e4a7245422b07689fb338 /tests/basics/bytes_construct_array.py
parent0fd91e39b1711772c88cfe4e0aaf817fe3387ba6 (diff)
downloadmicropython-178395031157f61af5426add2de1d76d91440b21.tar.gz
micropython-178395031157f61af5426add2de1d76d91440b21.zip
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/basics/bytes_construct_array.py')
0 files changed, 0 insertions, 0 deletions