enthought / enthought/comtypes

Add the version bridge for `BYTE` in the `GUID` module.

Open
#696 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.