https://github.com/python/cpython
Raw File
Tip revision: b494f5935c92951e75597bfe1c8b1f3112fec270 authored by Pablo Galindo on 04 October 2021, 17:27:07 UTC
Python 3.10.0
Tip revision: b494f59
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