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

STINNER Victor report at bugs.python.org
Mon Feb 11 09:12:04 EST 2019


STINNER Victor <vstinner at redhat.com> added the comment:

I suggest to close this issue.

@Ronald: Or do you think that something should still be done on macOS in the platform module?

This issue looks like a duplicate of bpo-35516. It has been decided that platform.system_alias() doesn't replace Darwin with macOS (it's now explained in a comment: see my commit 60875db2f67815d7d181c552bfac59e8c97619e3).

I modified platform.platform() to return "macOS" rather than "darwin" on macOS: "bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)" (commit ea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1).

----------
nosy: +vstinner

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


More information about the Python-bugs-list mailing list