This website requires JavaScript.
Odkrywaj
Pomoc
Zarejestruj się
Zaloguj się
mirror
/
micropython
kopia lustrzana
https://github.com/micropython/micropython
Obserwuj
1
Polub
0
Forkuj
You've already forked micropython
0
Kod
Zgłoszenia
Projekty
Wydania
Wiki
Aktywność
731e4e549a
micropython
/
tests
/
basics
/
assign_expr.py.exp
17 wiersze
93 B
Plaintext
Czysty
Zwykły widok
Historia
Unescape
Escape
tests/basics: Add tests for assignment operator :=.
2020-06-16 11:42:50 +00: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 05:11:27 +00:00
2 1
1 0
tests/basics: Add tests for assignment operator :=.
2020-06-16 11:42:50 +00:00
any True
8
123
any True
8
[(1, 0), (2, 2), (3, 6), (4, 12)]
4