Repository navigation
Use an unsigned BYTE for GUID.Data4 on every supported Python - #1017
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1017 +/- ##
=======================================
Coverage 92.62% 92.63%
=======================================
Files 154 154
Lines 16870 16880 +10
=======================================
+ Hits 15626 15636 +10
Misses 1244 1244 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…thought#696) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137jz1XbSeuomn8S7nSE9k6
jeanluyac-sketch
force-pushed
the
guid-byte-version-bridge
branch
from
December 2, 2026 01:24
f767903 to
8511a53
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #696
ctypes.wintypes.BYTEis the signedc_bytebefore Python 3.12, while Windows'BYTE(andGUID.Data4) is unsigned. This bridges it toc_ubyteon 3.10/3.11, as proposed in the issue, and adds a test thatData4isc_ubyteand reads0xC0correctly.Tested on Windows 11:
test_GUIDpasses 9/9 on Python 3.11.9 and 3.14.8. The new test fails onmainwith 3.11.9 (c_byte is not c_ubyte) and passes with this change. I didn't have 3.10 installed.AI assistance: drafted with Claude; I reviewed it and ran the tests myself.