This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: sys.getwindowsversion does not show some fields
Type: Stage:
Components: Versions: Python 3.4, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: giampaolo.rodola, r.david.murray
Priority: normal Keywords:

Created on 2013-12-27 17:45 by giampaolo.rodola, last changed 2022-04-11 14:57 by admin.

Messages (2)
msg207005 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2013-12-27 17:45
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.
msg207006 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-12-27 18:37
This is essentially a duplicate of item (3) in issue 1820, although I'm not entirely clear on what the repr would actually look like.
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64280
2013-12-27 18:37:11r.david.murraysetnosy: + r.david.murray
messages: + msg207006
2013-12-27 17:49:51serhiy.storchakasettitle: sys.getwindowsversion does nto show some fields -> sys.getwindowsversion does not show some fields
2013-12-27 17:45:42giampaolo.rodolacreate