circuitpython/tests/basics/assign_expr.py.exp
Damien George 910f579403 py/emitnative: Initialise locals as Python object type for native code.
In @micropython.native code the types of variables and expressions are
always Python objects, so they can be initialised as such.  This prevents
problems with compiling optimised code like while-loops where a local may
be referenced before it is assigned to.

Signed-off-by: Damien George <damien@micropython.org>
2022-12-16 11:44:10 +11:00

17 lines
93 B
Plaintext

4
True
2
4 5
5
1 5 5
5
2 1
1 0
any True
8
123
any True
8
[(1, 0), (2, 2), (3, 6), (4, 12)]
4