MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / __getattr__

Method __getattr__

windows/generated_def/interfaces.py:31–40  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

29 return args
30
31 def __getattr__(self, name):
32 if name in self._functions_:
33 winfunc = self._functions_[name]
34 # Hacking the HRESULT _check_retval_ and
35 # letting COMInterface.errcheck do the work of validating / raising
36 winfunc.restype = COMHRESULT
37 effective_errcheck = getattr(self, "errcheck", self._default_errcheck)
38 winfunc.errcheck = effective_errcheck
39 return functools.partial(winfunc, self)
40 return super(COMInterface, self).__getattribute__(name)
41
42 def __repr__(self):
43 description = "<NULL>" if not self.value else ""

Callers

nothing calls this directly

Calls 1

__getattribute__Method · 0.80

Tested by

no test coverage detected