Skip to content

eval_ module

Utilities for evaluation and compilation.


multiline_eval function

multiline_eval(
    expr,
    context=None
)

Evaluate several lines of input, returning the result of the last line.


Evaluable class

Evaluable()

Abstract class for instances that can be evaluated.

Subclasses


meets_eval_id method

Evaluable.meets_eval_id(
    eval_id
)

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