Replies: 3 comments 1 reply
-
Crash confirmed on v1.19.1 with ESP32, ESP8266 and RP2040. Your code, reformatted to run: def for_test_purpose():
lst = [0, 1]
v = 0
x = 1 # crash if this line is present.
print([v := i for i in lst if i > v])
if __name__ == "__main__":
for_test_purpose() Might be better to raise this as an issue |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ran that on a SAMD51 with a fresh build in the debugger. This is the error window showing the flags: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I converted that into an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,!
I've encourated a strange behavior with micropython 1.19 (crash and reset), my target is an ESP32 with spiram.
The piece of code to attempt to reproduce that, is very tiny. This code has been tested with cpython, without any problems.
Please, if someone could confirm if there is really a problem ? Thanks a lot in advance,
def for_test_purpose():
lst= [ 0,1]
v=0
x=1 # crash if this line is present.
print([v := i for i in lst if i > v])
if name == "main":
for_test_purpose()
Beta Was this translation helpful? Give feedback.
All reactions