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

Method can_call

IPython/core/guarded_eval.py:114–124  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

112 return True
113
114 def can_call(self, func):
115 if self.allow_any_calls:
116 return True
117
118 if func in self.allowed_calls:
119 return True
120
121 owner_method = _unbind_method(func)
122
123 if owner_method and owner_method in self.allowed_calls:
124 return True
125
126
127def _get_external(module_name: str, access_path: Sequence[str]):

Callers 4

_handle_assignFunction · 0.80
eval_nodeFunction · 0.80
_merge_valuesFunction · 0.80
_eval_or_create_duckFunction · 0.80

Calls 1

_unbind_methodFunction · 0.85

Tested by

no test coverage detected