Staging
v0.8.1
Revision 98e8ac8d82202aae32961f10b1014641ae1fffbf authored by Miss Islington (bot) on 07 April 2018, 02:00:06 UTC, committed by Ned Deily on 07 April 2018, 02:00:06 UTC
(cherry picked from commit ef5ce884a41c8553a7eff66ebace908c1dcc1f89)

Co-authored-by: Jay Crotts <crotts.jay@gmail.com>
1 parent a09bb87
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