https://github.com/python/cpython
Raw File
Tip revision: 1a79785e3e8fea80bcf6a800b45a04e06c787480 authored by Ɓukasz Langa on 19 February 2021, 12:31:44 UTC
Python 3.9.2
Tip revision: 1a79785
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