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

Function python_branch

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

Returns a string identifying the Python implementation branch. For CPython this is the SCM branch from which the Python binary was built. If not available, an empty string is returned.

()

Source from the content-addressed store, hash-verified

1138 return tuple(_sys_version()[1].split('.'))
1139
1140def python_branch():
1141
1142 """ Returns a string identifying the Python implementation
1143 branch.
1144
1145 For CPython this is the SCM branch from which the
1146 Python binary was built.
1147
1148 If not available, an empty string is returned.
1149
1150 """
1151
1152 return _sys_version()[2]
1153
1154def python_revision():
1155

Callers

nothing calls this directly

Calls 1

_sys_versionFunction · 0.85

Tested by

no test coverage detected