This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: win32_ver and getwindowsversion return different Windows 10 build numbers
Type: behavior Stage: resolved
Components: Library (Lib), Windows Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: sys.getwindowsversion().platform_version is incorrect
View: 43284
Assigned To: Nosy List: emddudley, paul.moore, shreyanavigyan, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2021-04-16 14:00 by emddudley, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg391199 - (view) Author: Michael Dudley (emddudley) Date: 2021-04-16 14:00
On my machine platform.win32_ver() and sys.getwindowsversion() are returning different Windows build numbers. I have confirmed this with Python 3.7.6, 3.8.5, and 3.9.2 (all 64-bit) on Windows 10.

platform.win32_ver() returns:

    ('10', '10.0.18362', 'SP0', '')

sys.getwindowsversion() returns:

    major=10, minor=0, build=18363, platform=2, service_pack=''

The sys.getwindowsversion() value is correct.

The Windows About panel reports Windows 10 Enterprise, version 1909, build 18363.1440. My kernel32.dll version is 10.0.18362.1350.
msg391211 - (view) Author: Shreyan Avigyan (shreyanavigyan) * Date: 2021-04-16 15:09
I'm also able to reproduce the problem you just described. It's actually not the fault of platform.win32_ver. Just type in sys.getwindowsversion().platform_version and you'll achieve a similar result. Behind the scenes platform.win32_ver is actually deriving it's result from sys.getwindowsversion().platform_version. I'm not sure if the result is intended or is a bug but Microsoft seems to claim in this post https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install-insiderplat_pc/wrong-version-of-kernel32dll-in-win10-insider/b0053ba0-f6e5-48f1-86e3-ddac28d6c4eb that both builds are same just the versions are different.
History
Date User Action Args
2022-04-11 14:59:44adminsetgithub: 88031
2021-04-16 15:39:41eryksunsetstatus: open -> closed
superseder: sys.getwindowsversion().platform_version is incorrect
resolution: duplicate
stage: resolved
2021-04-16 15:09:48shreyanavigyansetnosy: + shreyanavigyan
messages: + msg391211
2021-04-16 14:00:31emddudleycreate