(self, name)
| 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 "" |
nothing calls this directly
no test coverage detected