Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/basics/assign_expr.py.exp

17 lines
93 B
Plaintext
Raw Normal View History

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
Powered by Gitea Version: 1.23.8 Page: 113ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API