[issue26513] platform.win32_ver() broken in 2.7.11

James Domingo report at bugs.python.org
Wed Aug 31 10:31:25 EDT 2016


James Domingo added the comment:

Per SilentGhost's request, reposting my message from issue 27890 here --

The platform.release() function in Python 3.5.1 returns the correct value on Windows 2008 Server R2:

  C:\Users\jdoe\Documents\Python>python-3.5.1-embed-amd64\python.exe
  Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit (AM
  D64)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import platform
  >>> platform.release()
  '2008ServerR2'

However, the function in the latest release, Python 3.5.2, misidentifies the system as Windows 7:

  C:\Users\jdoe\Documents\Python>python-3.5.2-embed-amd64\python.exe
  Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AM
  D64)] on win32
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import platform
  >>> platform.release()
  '7'

----------
nosy: +James Domingo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26513>
_______________________________________


More information about the Python-bugs-list mailing list