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

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: platform: get macOS version rather than darwin version? -> platform: get macOS version rather than darwin version ___ Python tracker <

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

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1 by Victor Stinner in branch 'master': bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780) https://github.com/python/cpython/commit/ea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1 --

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

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > I’m not against changing this, but would like an implementation that returns > consistent information: either return “macOS” and the macOS version, or > “Darwin” and the kernel version. See my PR 10780. It returns "macOS-10.13.6-x86_64" (macOS + macOS versi

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

2018-11-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: I should have been clearer in my previous post. I’m not against changing this, but would like an implementation that returns consistent information: either return “macOS” and the macOS version, or “Darwin” and the kernel version. IIRC there is, or used to

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

2018-11-28 Thread STINNER Victor
STINNER Victor 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 tal

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

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > Why do you want to change this? I created this issue after I read this comment: > https://bugs.python.org/issue35316#msg330633 > I will investigate with MacOS Mojave this week. "Mojave" seems to be the new thing, but I don't recall if my macbook is running

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

2018-11-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why do you want to change this? The current behavior is consistent with the platform name (Darwin). 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 o

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

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10021 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

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

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: It seems like platform.mac_ver() can return None if plistlist is not available. platform.platform() can maybe try mac_ver(), but fallback on uname() if it's not available/working? -- It seems like getting the macOS version without plistlib is not easy: http

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

2018-11-28 Thread STINNER Victor
New submission from STINNER Victor : Would it be possible to get the macOS version (platform.mac_ver()) rather than the darwin version (uname()) for platform.platform()? As an user, I prefer the OS (macOS) version rather than the kernel (darwin) version. Current output $ ./python.exe -m plat