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

Class DictProxy

Lib/idlelib/debugger_r.py:256–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254
255
256class DictProxy:
257
258 def __init__(self, conn, oid, did):
259 self._conn = conn
260 self._oid = oid
261 self._did = did
262
263## def keys(self):
264## return self._conn.remotecall(self._oid, "dict_keys", (self._did,), {})
265
266 # 'temporary' until dict_keys is a pickleable built-in type
267 def keys(self):
268 return self._conn.remotecall(self._oid,
269 "dict_keys_list", (self._did,), {})
270
271 def __getitem__(self, key):
272 return self._conn.remotecall(self._oid, "dict_item",
273 (self._did, key), {})
274
275 def __getattr__(self, name):
276 ##print("*** Failed DictProxy.__getattr__:", name)
277 raise AttributeError(name)
278
279
280class GUIAdapter:

Callers 1

_get_dict_proxyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…