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

We could replace `%` string formatting with f-strings wherever applicable, as was done in #654. For details on f-string syntax, refer to the [Python official documentation](https://docs.python.org/3/reference/lexical_analysis.html#formatted-string-literals). - Most of the...

good first issue

In the discussions in https://github.com/python/cpython/pull/127210 and https://github.com/python/cpython/pull/127369, it was noted that the Python standard library's [`ctypes`](https://docs.python.org/3/library/ctypes.html) functions [`ctypes.DllCanUnloadNow`](https://docs.python.org/3/library/ctypes.html#ctypes.DllCanUnloadNow) and [`ctypes.DllGetClassObject`](https://docs.python.org/3/library/ctypes.html#ctypes.DllGetClassObject) depend on functions of the same name in `comtypes.server.inprocserver` ([`DllCanUnloadNow`](https://github.com/enthought/comtypes/blob/fb15f91d12aedfff1782150ff8e6bc02da4c8257/comtypes/server/inprocserver.py#L142-L147)...

question
shared_info
help wanted

The module defining `GUID` includes the following "Note": https://github.com/enthought/comtypes/blob/083c19e9fdc0f366df48ad448e897246f346ede0/comtypes/_post_coinit/guid.py#L26-L27 However, this note was written at the very start of this project, even before the release of Python 3.0. CPython and...

good first issue

From https://github.com/enthought/comtypes/pull/694#discussion_r1876991821: > To be sure that ``BYTE`` is ``c_ubyte`` on any python version comtypes support, shouldn't we do this? > > ```py > > if sys.version_info >= (3, 12):...

good first issue

The following is pointed in https://github.com/python/typeshed/pull/12982#issuecomment-2466920145. > I did a local comparison using `mypy --strict` and there were only two things that meaningfully changed, both additional findings: > > ```diff...

good first issue
typing

I think the following commented-out section might now succeed in its assertion. If this test were to fail, tests for `IDispatch.Invoke` or dispatch methods would also fail as a result....

good first issue

Whether it’s a remnant of Python 2.x or a legacy from the early stages of this project, the metaclass is directly accessible as shown below, it still retrieves the metaclass...

good first issue

This is the old `property` style. https://github.com/enthought/comtypes/blob/4cbdb03b31583c6a974dd690d38f1abe69767dda/comtypes/_post_coinit/unknwn.py#L441-L445 This should be changed to the modern style with additional import sections. ```diff from comtypes._memberspec import _ComMemberSpec, _DispMemberSpec from comtypes._py_instance_method import instancemethod +if...

good first issue
coding style