[issue43284] sys.getwindowsversion().platform_version is incorrect

Shreyan Avigyan report at bugs.python.org
Sun Apr 18 12:59:25 EDT 2021


Shreyan Avigyan <shreyan.avigyan at gmail.com> added the comment:

But kernel32.dll (since it's of a different version) isn't accurate at all right? To find the accurate result we have to use the CurrentBuildNumber registry key. I think this key will not be removed so easily by Microsoft. This key have been in existence from NT 3.5 till today. I think it's the safest and reliable way to get the version number other than WMI query. I know the key can be removed in the future but if it that happens what about reimplementing the kernel32.dll then. We need a way to get the accurate version right?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43284>
_______________________________________


More information about the Python-bugs-list mailing list