[New-bugs-announce] [issue7863] platform module doesn't detect Windows 7

Adal Chiriliuc report at bugs.python.org
Sat Feb 6 00:32:25 CET 2010


New submission from Adal Chiriliuc <adal.chiriliuc at gmail.com>:

Running python 32 bit on Windows 7 64 bit:
>>> import platform
>>> platform.platform()
'Windows-post2008Server-6.1.7600'

Should be corrected to display
'Windows-7-6.1.7600'

Fix:
>        elif maj == 6:
>            if min == 0:
>                    # ..................
>                    release = 'Vista'
>                else:
>                    if productType == VER_NT_WORKSTATION:
>                        release = 'Vista'
>                    else:
>                        release = '2008Server'
>            elif min == 1:
>                release = '7'
>            else:
>                release = 'post2008Server'

----------
components: Library (Lib)
messages: 98920
nosy: adal
severity: normal
status: open
title: platform module doesn't detect Windows 7
versions: Python 2.6

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


More information about the New-bugs-announce mailing list