Skip to content

macOS version rather than the darwin version#1

Open
turegano-equinix wants to merge 1 commit into0xch4z:masterfrom
turegano-equinix:patch-1
Open

macOS version rather than the darwin version#1
turegano-equinix wants to merge 1 commit into0xch4z:masterfrom
turegano-equinix:patch-1

Conversation

@turegano-equinix
Copy link
Copy Markdown

#Changed in version 3.8: On macOS, the function now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than the darwin version.

import platform
platform.platform()
'macOS-13.2.1-x86_64-i386-64bit'

#Changed in version 3.8: On macOS, the function now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than the darwin version.

>>> import platform
>>> platform.platform()
'macOS-13.2.1-x86_64-i386-64bit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant