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

Function _find_dunder

IPython/core/guarded_eval.py:539–544  ·  view source on GitHub ↗
(node_op, dunders)

Source from the content-addressed store, hash-verified

537
538
539def _find_dunder(node_op, dunders) -> Union[tuple[str, ...], None]:
540 dunder = None
541 for op, candidate_dunder in dunders.items():
542 if isinstance(node_op, op):
543 dunder = candidate_dunder
544 return dunder
545
546
547def get_policy(context: EvaluationContext) -> EvaluationPolicy:

Callers 2

eval_nodeFunction · 0.90
eval_nodeFunction · 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…