Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignment operator yields wrong value #438

Closed
Kaptensanders opened this issue Feb 23, 2023 · 1 comment
Closed

assignment operator yields wrong value #438

Kaptensanders opened this issue Feb 23, 2023 · 1 comment

Comments

@Kaptensanders
Copy link

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

craigbarratt added a commit that referenced this issue Feb 25, 2023
@craigbarratt
Copy link
Member

Yikes - thanks for reporting. I've pushed fix f77d859 and test cases 48b6a8f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants