https://github.com/python/cpython
Raw File
Tip revision: a342a49189c16f01e7b95e0bf22ea2bd539222cd authored by Pablo Galindo on 16 March 2022, 11:25:44 UTC
Python 3.10.3
Tip revision: a342a49
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