This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
circuitpython
/
tests
/
basics
/
assign_expr.py.exp
17 lines
93 B
Plaintext
Raw
Normal View
History
Unescape
Escape
tests/basics: Add tests for assignment operator :=.
2020-06-16 21:42:50 +10:00
4
True
2
4 5
5
1 5 5
5
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-15 16:11:27 +11:00
2 1
1 0
tests/basics: Add tests for assignment operator :=.
2020-06-16 21:42:50 +10:00
any True
8
123
any True
8
[(1, 0), (2, 2), (3, 6), (4, 12)]
4
Reference in New Issue
Copy Permalink