MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / python_version_tuple

Function python_version_tuple

tools/python-3.11.9-amd64/Lib/platform.py:1129–1138  ·  view source on GitHub ↗

Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0).

()

Source from the content-addressed store, hash-verified

1127 return _sys_version()[1]
1128
1129def python_version_tuple():
1130
1131 """ Returns the Python version as tuple (major, minor, patchlevel)
1132 of strings.
1133
1134 Note that unlike the Python sys.version, the returned value
1135 will always include the patchlevel (it defaults to 0).
1136
1137 """
1138 return tuple(_sys_version()[1].split('.'))
1139
1140def python_branch():
1141

Callers

nothing calls this directly

Calls 3

tupleClass · 0.85
_sys_versionFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected