https://github.com/python/cpython
Raw File
Tip revision: 3d8993a744813c5144851da5347d7b4b1885f234 authored by Ɓukasz Langa on 03 May 2021, 09:47:56 UTC
Python 3.8.10
Tip revision: 3d8993a
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