Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 9242376906b604697f278453ab853861fee2c150 authored by Guido van Rossum on 10 November 2020, 05:36:05 UTC
Some suggestions for the descriptors howto.
Tip revision: 9242376
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