[New-bugs-announce] [issue20081] sys.getwindowsversion does nto show some fields
Giampaolo Rodola'
report at bugs.python.org
Fri Dec 27 18:45:42 CET 2013
New submission from Giampaolo Rodola':
On Windows 7:
>>> v = sys.getwindowsversion()
>>> v
sys.getwindowsversion(major=6, minor=1, build=7600, platform=2, service_pack='')
>>> v.service_pack_major
0
>>> v.service_pack_minor
0
>>> v.suite_mask
254
Doc states:
> For compatibility with prior versions, only the first 5 elements are retrievable by indexing.
...so I guess that's why service_pack_minor, service_pack_major and suite_mask fields are not shown.
Nevertheless I think this is a inconvenience which should be fixed, at least in the next major Python version.
----------
messages: 207005
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: sys.getwindowsversion does nto show some fields
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20081>
_______________________________________
More information about the New-bugs-announce
mailing list