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

Class CodeProxy

Lib/idlelib/debugger_r.py:240–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240class CodeProxy:
241
242 def __init__(self, conn, oid, cid):
243 self._conn = conn
244 self._oid = oid
245 self._cid = cid
246
247 def __getattr__(self, name):
248 if name == "co_name":
249 return self._conn.remotecall(self._oid, "code_name",
250 (self._cid,), {})
251 if name == "co_filename":
252 return self._conn.remotecall(self._oid, "code_filename",
253 (self._cid,), {})
254
255
256class DictProxy:

Callers 1

_get_f_codeMethod · 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…