Issue 23417: Windows 8.1 and Windows Server 2012 R2 are not displayed properly (original) (raw)

Python on Windows can now can understand that it's on Windows 8.1 and Windows Server 2012 R2, but platform.py hasn't been updated, and claims it's on "post2012Server":

import platform print(platform.win32_ver()) ('post2012Server', '6.3.9600', '', 'Multiprocessor Free')

The function win32_ver (which most of the platform library relies upon) should be changed, to include Windows 8.1 and Windows Server 2012 R2. I've attached a patch file that does that