[issue23747] platform module exposes win32_ver function on posix systems

Anand B Pillai report at bugs.python.org
Mon Mar 23 10:30:16 CET 2015


New submission from Anand B Pillai:

>>> import platform
>>> platform.system()
'Linux'
>>> platform.win32_ver()
('', '', '', '')

Why is this function even exposed on Linux ? It should be conditionally exposed only on win32 platforms. 

Funny that this is coming from the module named "platform" itself :)

----------
components: Library (Lib)
messages: 238995
nosy: pythonhacker
priority: normal
severity: normal
status: open
title: platform module exposes win32_ver function on posix systems

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


More information about the Python-bugs-list mailing list