Skip to content

eval_ module

Utilities for evaluation and compilation.


evaluate function

evaluate(
    expr,
    context=None
)

Evaluate one to multiple lines of expression.

Returns the result of the last line.


get_free_vars function

get_free_vars(
    expr
)

Parse the code and retrieve all free variables, excluding built-in names.


get_symbols function

get_symbols(
    table
)

Get symbols from a symbol table recursively.


Evaluable class

Evaluable()

Abstract class for instances that can be evaluated.

Superclasses

Inherited members

Subclasses


meets_eval_id method

Evaluable.meets_eval_id(
    eval_id
)

Return whether the evaluation id of the instance meets the global evaluation id.