https://github.com/python/cpython
Raw File
Tip revision: 1016ef37904c7ddc16fb18d3369b2a78cf428fa4 authored by Ɓukasz Langa on 30 August 2021, 19:02:15 UTC
Python 3.9.7
Tip revision: 1016ef3
getversion.c

/* Return the full version string. */

#include "Python.h"

#include "patchlevel.h"

const char *
Py_GetVersion(void)
{
    static char version[250];
    PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
                  PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
    return version;
}
back to top