Staging
v0.5.1
https://github.com/python/cpython
Revision 44400e88f906bf99cd2c57791f1201c400daf6af authored by Miss Islington (bot) on 30 May 2020, 22:33:06 UTC, committed by GitHub on 30 May 2020, 22:33:06 UTC
1 parent 588efc2
Raw File
Tip revision: 44400e88f906bf99cd2c57791f1201c400daf6af authored by Miss Islington (bot) on 30 May 2020, 22:33:06 UTC
bpo-40829: Add a what's new entry about deprecation of shuffle's random parameter (GH-20541) (GH-20544)
Tip revision: 44400e8
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