enthought / enthought/comtypes
Add the version bridge for `BYTE` in the `GUID` module.
Open
good first issue
- Dominant language
- Python
- Stars
- 345
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
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):
>
> from ctypes.wintypes import BYTE
>
> else:
>
> from ctypes import c_ubyte
>
> BYTE = c_ubyte
>
> ```
Contributor guide
Assessment
This issue has not been assessed yet.