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

Function python_branch

Lib/platform.py:1213–1225  ·  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

1211 return tuple(_sys_version()[1].split('.'))
1212
1213def python_branch():
1214
1215 """ Returns a string identifying the Python implementation
1216 branch.
1217
1218 For CPython this is the SCM branch from which the
1219 Python binary was built.
1220
1221 If not available, an empty string is returned.
1222
1223 """
1224
1225 return _sys_version()[2]
1226
1227def python_revision():
1228

Callers

nothing calls this directly

Calls 1

_sys_versionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…