Skip to content

Follow function calls? #3

@sameersingh

Description

@sameersingh

If there's a function call in the definition, try to get the definition of the function, analyze it, and replace variable uses with called ones.

use case:

def func(y): return y[0] and y[1]
cond = lambda y: func(y)
constraint(cond)

Note that cond=func works.

This might be too ambitious (too many corner cases, or danger with recursion), in which case better logging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions