https://github.com/python/cpython
Raw File
Tip revision: 445f7f54b1dd334db6cd5999da262e3caeed492a authored by Pablo Galindo on 04 January 2021, 17:24:56 UTC
Python 3.10.0a4
Tip revision: 445f7f5
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