classification
Title: Wrong windows build in 20H2
Type: behavior Stage:
Components: Windows Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bugale bugale, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2021-02-21 10:42 by bugale bugale, last changed 2021-02-21 10:42 by bugale bugale.

Messages (1)
msg387450 - (view) Author: bugale bugale (bugale bugale) Date: 2021-02-21 10:42
Running `platform.platform()` on Windows 10 20H2 results in the build number 19041:

Python 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.platform()
'Windows-10-10.0.19041-SP0'

This is incorrect, the build number is 19042.
Using ctypes like in the answer here produces a correct result:
https://stackoverflow.com/questions/32300004/python-ctypes-getting-0-with-getversionex-function
History
Date User Action Args
2021-02-21 10:42:26bugale bugalecreate