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

Method __getattr__

Lib/idlelib/rpc.py:559–571  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

557 self.oid = oid
558
559 def __getattr__(self, name):
560 if self.__methods is None:
561 self.__getmethods()
562 if self.__methods.get(name):
563 return MethodProxy(self.sockio, self.oid, name)
564 if self.__attributes is None:
565 self.__getattributes()
566 if name in self.__attributes:
567 value = self.sockio.remotecall(self.oid, '__getattribute__',
568 (name,), {})
569 return value
570 else:
571 raise AttributeError(name)
572
573 def __getattributes(self):
574 self.__attributes = self.sockio.remotecall(self.oid,

Callers

nothing calls this directly

Calls 5

__getmethodsMethod · 0.95
__getattributesMethod · 0.95
MethodProxyClass · 0.85
remotecallMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected