Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 46e39ff1f8dffaea8cf1e750cd7d170c2a49558b authored by Mariatta on 26 October 2020, 21:53:21 UTC
Let dependabot create PRs against the maintenance branches
Tip revision: 46e39ff
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