Staging
v0.8.1
Revision 0f91f586ae9b76c3bb44559bd8cd473b1b8de5ff authored by Hai Shi on 08 December 2020, 14:42:42 UTC, committed by GitHub on 08 December 2020, 14:42:42 UTC
Removed PyModule_GetWarningsModule() which is useless due to 
the _warnings module was converted to a builtin module in 2.6.
1 parent b6d98c1
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