You are viewing an older version (9.10.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.10.0 / IPython / core / guarded_eval / guarded_eval

function

IPython.core.guarded_eval:guarded_eval

source: /IPython/core/guarded_eval.py :433

Signature

def   guarded_eval ( code : str context : EvaluationContext )

Summary

Evaluate provided code in the evaluation context.

Extended Summary

If evaluation policy given by context is set to forbidden no evaluation will be performed; if it is set to dangerous standard eval will be used; finally, for any other, policy eval_node will be called on parsed AST.

Aliases

  • IPython.core.completer.guarded_eval