Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 8571ed86479c03a67a6bae44e8115379c792b41c authored by Guido van Rossum on 10 October 1998, 19:15:32 UTC
Add a label at the top showing (very basic) help for the stack viewer.
Tip revision: 8571ed8
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