comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.

Results 178 comtypes issues
Sort by recently updated
recently updated
newest added

I discovered this in the process of investigating #347. I was checking the proprietary `.tlb` file that `comtypes` uses for testing and the Python modules generated from it. I saw...

Related to #327, I am refactoring `tools.codegenerator` and `client._generate`. These modules include processing to turn passed relative paths into absolute paths and to find absolute paths to type libraries. However,...

As a result of previous refactoring, `CodeGenerator.type_name` no longer references `self` except recursively using `self.type_name`. Therefore, it is now possible to carve out a process into a separate class without...

The `GUID` symbol is defined statically in `comtypes/__init__.py`, so it is always existing in `comtypes` module namespace. Therefore, `if "GUID" in self.known_symbols:` in `CodeGenerator.need_GUID` was always `True`. It was a...

The following code was generated on comtypes 1.1.14 using `comtypes.client.GetModule("portabledeviceapi.dll")`: ```python class IEnumPortableDeviceObjectIDs(IUnknown): """IEnumPortableDeviceObjectIDs Interface""" [...] def __iter__(self): return self def next(self): item, fetched = self.Next(1) [...] def __getitem__(self, index):...

related to #327 ## why is it necessary `for_stub` mode? If we write `from ham import Spam` in the runtime module `foo.py` to add `Spam` to the namespace of the...

## target part https://github.com/enthought/comtypes/blob/fed3de69ccc61e37187b4a219daa120a97740663/comtypes/client/_generate.py#L237-L256 ## from builtin `__import__` to `importlib.import_module` [The documentation](https://docs.python.org/3/library/importlib.html#importlib.__import__) said > Programmatic importing of modules should use `import_module()` instead of this function. And, > The most important...

Hi, I really appreciate the great work to develop comtypes. Many thanks! I miss one feature which is the transfer of BSTR arrays. I suggest to change the following code...

`_cominterface_meta._fix_inout_args` is existing since d85a911, 14 years ago. - https://github.com/enthought/comtypes/blob/cc9a0131edc76bd92073f75e9737aad40cd10c58/comtypes/__init__.py#L716-L722 - https://github.com/enthought/comtypes/blob/cc9a0131edc76bd92073f75e9737aad40cd10c58/comtypes/__init__.py#L588-L666 And the last time it was changed was in `0.6.3` that released by @cfarrow, almost 10 years ago....