Jun Komoda
Jun Komoda
Hello, `comtypes`ers, [Python 3.14 beta 1 is scheduled for release on May 6, 2025](https://peps.python.org/pep-0745/). We recognize that it's time to begin preparations to ensure that `comtypes` continues to function reliably...
Assigning `0x80020004` to `VARIANT.missing` may not be appropriate. https://github.com/enthought/comtypes/blob/6c1788afb7789b91959fb8ecb039538c90ca0754/comtypes/automation.py#L551-L556 https://github.com/enthought/comtypes/blob/2e94dbca2a579ac0a4b2f9388e5cdca7b113f480/comtypes/automation.py#L551-L553 The line is intended to assign `DISP_E_PARAMNOTFOUND` to a `VARIANT` field to create an instance for missing parameters. `0x80020004` is...
When creating Python wrapper modules for COM libraries, `comtypes` imports symbols specified in `__known_symbols__` from existing modules instead of generating them in the codebase. `__known_symbols__` was introduced in #360 to...
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...
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)...
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...
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):...
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...
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....