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

Marc-Andre Lemburg report at bugs.python.org
Mon Feb 22 23:35:05 CET 2010


Marc-Andre Lemburg <mal at egenix.com> added the comment:

platform.system() is a direct interface to platform.uname() which in return is an interface to the platform's uname() API, so the reasoning is much the same as for sys.platform on those platforms that do expose a uname() function (and command).

On Mac OS X, uname returns "Darwin".

What we can do, is add a new function parameter ''aliased'' (just like we have for platform.platform()) which then enables applying some aliasing to the returned uname() values.

----------

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


More information about the Python-bugs-list mailing list