Skip to content

methods converted to lambda-friendly can not be used with non-expression arguments #2

@smarie

Description

@smarie

The following code fails:

from math import isfinite
from mini_lambda import C

a = C(isfinite)  # define a constant function (a lambda-friendly function)
f = _(a(0) & a(0))  # raises AttributeError "NoneType has no attribute '_root_var'"
assert f(None)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions