Closed
Description
Discussed in https://github.com/orgs/micropython/ 5902 discussions/10879
Originally posted by fca1 February 28, 2023
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()