MCPcopy Index your code
hub / github.com/python/cpython / _get_system_version_tuple

Function _get_system_version_tuple

Lib/_osx_support.py:118–134  ·  view source on GitHub ↗

Return the macOS system version as a tuple The return value is safe to use to compare two version numbers.

()

Source from the content-addressed store, hash-verified

116
117_SYSTEM_VERSION_TUPLE = None
118def _get_system_version_tuple():
119 """
120 Return the macOS system version as a tuple
121
122 The return value is safe to use to compare
123 two version numbers.
124 """
125 global _SYSTEM_VERSION_TUPLE
126 if _SYSTEM_VERSION_TUPLE is None:
127 osx_version = _get_system_version()
128 if osx_version:
129 try:
130 _SYSTEM_VERSION_TUPLE = tuple(int(i) for i in osx_version.split('.'))
131 except ValueError:
132 _SYSTEM_VERSION_TUPLE = ()
133
134 return _SYSTEM_VERSION_TUPLE
135
136
137def _remove_original_values(_config_vars):

Callers 2

_supports_arm64_buildsFunction · 0.85

Calls 2

_get_system_versionFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…