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

[Python] Comparison with None fails #3617

Closed
HLWeil opened this issue Nov 28, 2023 · 0 comments · Fixed by #3618
Closed

[Python] Comparison with None fails #3617

HLWeil opened this issue Nov 28, 2023 · 0 comments · Fixed by #3618

Comments

@HLWeil
Copy link

HLWeil commented Nov 28, 2023

Description

Transpiled comparison of Some List and None fails, as the equality tries to compare fields which don't exist on None.

Repro code

test.fsx

Some [1;2;3] = None

test.cmd

dotnet fable . --lang python
python test.py

Expected and actual results

Expected result: should return false

Actual result: AttributeError: 'NoneType' object has no attribute 'tail'

Related information

  • dotnet fable --version: 4.5.0
  • dotnet tool list/update/install: 4.6.0
  • Windows11

@Freymaurer

MangelMaxime added a commit that referenced this issue Nov 28, 2023
MangelMaxime added a commit that referenced this issue Nov 28, 2023
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

Successfully merging a pull request may close this issue.

1 participant