[issue35344] platform: get macOS version rather than darwin version?

STINNER Victor report at bugs.python.org
Wed Nov 28 19:37:36 EST 2018


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

> I’ve filed an issue in the past to change the platform name to “macosx”, but there were good arguments to not change the behavior at the time. The existence of iOS might change that though. 

I'm not sure that we are talking about the same thing. I'm talking about sys.platform. Are you talking about platform.system()?

We might change platform.system(), but that change might be backward incompatible and I'm not sure that it's worth it.

--

Why only changing platform.platform()? See the doc:

.. function:: platform(aliased=0, terse=0)

   Returns a single string identifying the underlying platform with as much useful
   information as possible.

   The output is intended to be *human readable* rather than machine parseable. It
   may look different on different platforms and this is intended.

   (...)

This string is for humans, and it is not machine parseable. So there is no risk of backward incompatibility.

----------

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


More information about the Python-bugs-list mailing list