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

Class MethodProxy

Lib/idlelib/rpc.py:599–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597
598
599class MethodProxy:
600
601 def __init__(self, sockio, oid, name):
602 self.sockio = sockio
603 self.oid = oid
604 self.name = name
605
606 def __call__(self, /, *args, **kwargs):
607 value = self.sockio.remotecall(self.oid, self.name, args, kwargs)
608 return value
609
610
611# XXX KBK 09Sep03 We need a proper unit test for this module. Previously

Callers 1

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