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

Function python_revision

Lib/platform.py:1227–1238  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1225 return _sys_version()[2]
1226
1227def python_revision():
1228
1229 """ Returns a string identifying the Python implementation
1230 revision.
1231
1232 For CPython this is the SCM revision from which the
1233 Python binary was built.
1234
1235 If not available, an empty string is returned.
1236
1237 """
1238 return _sys_version()[3]
1239
1240def python_build():
1241

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…