Uh oh!
There was an error while loading. Please reload this page.
gh-152433: Windows: _winapi.c implement GetVersion() UWP alternative - #152694
Conversation
chris-eibl
left a comment
There was a problem hiding this comment.
LGTM.
I hardly think this will have any user on XBOX, though, and even on Desktop the main usage was for subprocess to check whether we're on Win9x
Lines 1030 to 1033 in 23bba4c
which has been ripped out a while ago. IOW, it is not used in the Python codebase itself anymore (but there might be users out there, even though starting with an underscore and GetVersion "lying" at you when running in compatibility / manifested mode).
zooba
commented
Jul 20, 2026
Well, other stuff that's typically directly linked to the version number also gets changed, so if you are trying to detect whether some API behaves a certain way by checking the version number, then you'll want the reported version number to match the compatibility shims that you're getting when you call the API. It's only a lie if your goal is to print the current version to a human, which is why the |
Windows:
_winapi.cimplementGetVersion()UWP alternative.