[issue26513] platform.win32_ver() broken in 2.7.11
Alex R. Hoyling
report at bugs.python.org
Wed Sep 21 05:50:17 EDT 2016
Alex R. Hoyling added the comment:
|| We now use 'product_type' on 3.5+ and 'product' on 2.7, so we should be good.
It actually looks like we use `product_type` on Python 2.7.12, not `product`.
On Python 2.7.12, on Windows Server 2008 R2:
>>> import sys
>>> sys.getwindowsversion().product
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'sys.getwindowsversion' object has no attribute 'product'
>>> sys.getwindowsversion().product_type
3
This would cause `platform.release()` to output '7' instead of '2008ServerR2'.
I don't think this issue is resolved.
----------
nosy: +arhoyling
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26513>
_______________________________________
More information about the Python-bugs-list
mailing list