https://github.com/python/cpython
Raw File
Tip revision: f37715396786fd4055f5891aa16774ede26392ff authored by Pablo Galindo on 06 June 2022, 11:52:40 UTC
Python 3.10.5
Tip revision: f377153
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