https://github.com/python/cpython
Raw File
Tip revision: 7c12e4835ebe52287acd200a2e76b533413b15d0 authored by Pablo Galindo on 05 October 2021, 12:42:52 UTC
Python 3.11.0a1
Tip revision: 7c12e48
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