Staging
v0.8.1
Revision 61b14151cc92021a10f94765eaa152ed04eb262a authored by Batuhan Taşkaya on 12 January 2020, 22:13:31 UTC, committed by Miss Islington (bot) on 12 January 2020, 22:13:31 UTC


https://bugs.python.org/issue39313


Automerge-Triggered-By: @pablogsal
1 parent 14dbe4b
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