MCPcopy Index your code
hub / github.com/python/cpython / __getattr__

Method __getattr__

Lib/idlelib/debugger_r.py:206–216  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

204 self._dictcache = {}
205
206 def __getattr__(self, name):
207 if name[:1] == "_":
208 raise AttributeError(name)
209 if name == "f_code":
210 return self._get_f_code()
211 if name == "f_globals":
212 return self._get_f_globals()
213 if name == "f_locals":
214 return self._get_f_locals()
215 return self._conn.remotecall(self._oid, "frame_attr",
216 (self._fid, name), {})
217
218 def _get_f_code(self):
219 cid = self._conn.remotecall(self._oid, "frame_code", (self._fid,), {})

Callers

nothing calls this directly

Calls 4

_get_f_codeMethod · 0.95
_get_f_globalsMethod · 0.95
_get_f_localsMethod · 0.95
remotecallMethod · 0.80

Tested by

no test coverage detected