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

Function format_version_info

Doc/tools/extensions/patchlevel.py:53–59  ·  view source on GitHub ↗
(info: version_info)

Source from the content-addressed store, hash-verified

51
52
53def format_version_info(info: version_info) -> tuple[str, str]:
54 version = f"{info.major}.{info.minor}"
55 release = f"{info.major}.{info.minor}.{info.micro}"
56 if info.releaselevel != "final":
57 suffix = {"alpha": "a", "beta": "b", "candidate": "rc"}
58 release += f"{suffix[info.releaselevel]}{info.serial}"
59 return version, release
60
61
62def get_version_info():

Callers 2

get_version_infoFunction · 0.85
patchlevel.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…