eval

Evaluates Python code and returns its result.

Variables added with add are bound first, including any added after an earlier evaluation.

Return

the result of the evaluation, or null

Parameters

code

the Python source code to evaluate

Throws

if code fails the checks described above, or fails to run