MCPcopy Create free account
hub / github.com/RustPython/RustPython / python_branch

Function python_branch

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

1268 return tuple(_sys_version()[1].split('.'))
1269
1270def python_branch():
1271
1272 """ Returns a string identifying the Python implementation
1273 branch.
1274
1275 For CPython this is the SCM branch from which the
1276 Python binary was built.
1277
1278 If not available, an empty string is returned.
1279
1280 """
1281
1282 return _sys_version()[2]
1283
1284def python_revision():
1285

Callers

nothing calls this directly

Calls 1

_sys_versionFunction · 0.85

Tested by

no test coverage detected