Skip to content

assignment operator yields wrong value #438

Closed
@Kaptensanders

Description

@Kaptensanders

Hi, first of all, thanks for pypscript, it's just awsome.

When doing this:

a = None or "foo" 

a is incorrectly assigned the value None

however, when used in a function decorated with @pyscript_compile, the expression yields the expected behavior a="foo"

Pyscript: 1.3.3
Home Assistant Core installation: 2023.2.2
Python 3.10.9

Br Anders

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions