10000 core: Crash with an example code with walrus use, on V1.19 ? · Issue #10895 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
core: Crash with an example code with walrus use, on V1.19 ? #10895
Closed
@robert-hh

Description

@robert-hh

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpy-coreRelates to py/ directory in source

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0