Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the version bridge for BYTE in the GUID module. #696

Open
junkmd opened this issue Dec 11, 2024 · 0 comments
Open

Add the version bridge for BYTE in the GUID module. #696

junkmd opened this issue Dec 11, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@junkmd
Copy link
Collaborator

junkmd commented Dec 11, 2024

From #694 (comment):

To be sure that BYTE is c_ubyte on any python version comtypes support, shouldn't we do this?

if sys.version_info >= (3, 12):

    from ctypes.wintypes import BYTE

else:

    from ctypes import c_ubyte

    BYTE = c_ubyte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant