[New-bugs-announce] [issue43284] Wrong windows build in 20H2

bugale bugale report at bugs.python.org
Sun Feb 21 05:42:26 EST 2021

New submission from bugale bugale <bugalit at gmail.com>:

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()

This is incorrect, the build number is 19042.
Using ctypes like in the answer here produces a correct result:

components: Windows
messages: 387450
nosy: bugale bugale, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Wrong windows build in 20H2
type: behavior
versions: Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list