MCPcopy Index your code
hub / github.com/ipython/ipython / get_policy

Function get_policy

IPython/core/guarded_eval.py:547–553  ·  view source on GitHub ↗
(context: EvaluationContext)

Source from the content-addressed store, hash-verified

545
546
547def get_policy(context: EvaluationContext) -> EvaluationPolicy:
548 policy = copy(EVALUATION_POLICIES[context.evaluation])
549
550 for key, value in context.policy_overrides.items():
551 if hasattr(policy, key):
552 setattr(policy, key, value)
553 return policy
554
555
556def _validate_policy_overrides(

Callers 5

_handle_assignFunction · 0.85
eval_nodeFunction · 0.85
_infer_return_valueFunction · 0.85
_eval_node_nameFunction · 0.85
_eval_or_create_duckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…