https://github.com/python/cpython
Raw File
Tip revision: 2de452f8bf2f78417e04bcf7919beb502c53a0e2 authored by Ɓukasz Langa on 16 March 2022, 12:12:59 UTC
Python 3.9.11, take two
Tip revision: 2de452f
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