Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: b484871ba707ae2f9898e22effcd297c19d4c5ea authored by Ɓukasz Langa on 09 June 2020, 18:52:10 UTC
Python 3.9.0b3
Tip revision: b484871
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