[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

Christian Clauss report at bugs.python.org
Sun May 4 21:35:48 CEST 2014


Christian Clauss added the comment:

assert sys.platform == platform.system().lower()

Should that always be True?  It is on Mac OS X but...

On iOS (Pythonista):
sys.platform ==> 'unknown'
platform.system() ==> 'Darwin'

https://docs.python.org/2/library/sys.html#sys.platform should be updated to provide the correct values for iOS and Android devices which now outnumber many of the other OSes listed.

----------
nosy: +Christian.Clauss

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


More information about the Python-bugs-list mailing list