Staging
v0.8.1
Revision 40a0625792e795cd41c4ba20475e3b770b53817a authored by Terry Jan Reedy on 22 September 2020, 05:43:55 UTC, committed by GitHub on 22 September 2020, 05:43:55 UTC
The marker was added to the language in 3.8 and
3.7 only gets security patches.
1 parent 6c33385
Raw File
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