https://github.com/python/cpython
Raw File
Tip revision: e1ebdc52b8bd82a928398b0a75149552a723389a authored by roy reznik on 11 April 2022, 15:10:34 UTC
gh-91423: Remove bugs.python.org from bugs.rst (GH-91425)
Tip revision: e1ebdc5
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