Staging
v0.5.1
https://github.com/python/cpython
Revision 6c06ef7dc310039361f931162857003548658cde authored by Ned Deily on 13 October 2018, 07:01:13 UTC, committed by Ned Deily on 13 October 2018, 07:01:13 UTC
1 parent d8b6425
Raw File
Tip revision: 6c06ef7dc310039361f931162857003548658cde authored by Ned Deily on 13 October 2018, 07:01:13 UTC
3.7.1rc2
Tip revision: 6c06ef7
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