Skip to content

[Python] Comparison with None fails #3617

Closed

Description

@HLWeil

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

Activity

  1. added 2 commits that reference this issue on Nov 28, 2023
    4725aea
    51e0842
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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