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

Function get_version_info

Doc/tools/extensions/patchlevel.py:62–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61
62def get_version_info():
63 try:
64 info = get_header_version_info()
65 return format_version_info(info)
66 except OSError:
67 version, release = format_version_info(sys.version_info)
68 print(
69 f"Failed to get version info from Include/patchlevel.h, "
70 f"using version of this interpreter ({release}).",
71 file=sys.stderr,
72 )
73 return version, release
74
75
76if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

get_header_version_infoFunction · 0.85
format_version_infoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…