[issue38362] platform.system() comparison problem
Светломир Балевски
report at bugs.python.org
Thu Oct 3 07:44:52 EDT 2019
New submission from Светломир Балевски <s.balevski at gmail.com>:
Hi, I am using platform.system(). On linux I am using python3.6.
>>> platform.system()
'Linux'
>>> platform.system() is 'Linux'
False
>>> platform.system() == 'Linux'
True
On Windows with python 3.7:
[10/3/2019 2:42 PM]
>>> platform.system()
'Windows'
>>> platform.system() is 'Windows'
True
>>> platform.system() == 'Windows'
True
Is this a known problem?
----------
components: Library (Lib)
messages: 353840
nosy: Светломир Балевски
priority: normal
severity: normal
status: open
title: platform.system() comparison problem
type: behavior
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38362>
_______________________________________
More information about the Python-bugs-list
mailing list